Repository: trafficserver Updated Branches: refs/heads/master c1d845910 -> ca7706fa5
Fix indentation Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/ca7706fa Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/ca7706fa Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/ca7706fa Branch: refs/heads/master Commit: ca7706fa5a37865ee91fd88a38908775f87b3fed Parents: c1d8459 Author: Leif Hedstrom <[email protected]> Authored: Tue Jan 20 11:01:21 2015 -0700 Committer: Leif Hedstrom <[email protected]> Committed: Tue Jan 20 11:01:21 2015 -0700 ---------------------------------------------------------------------- lib/ts/ink_inet.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/ca7706fa/lib/ts/ink_inet.cc ---------------------------------------------------------------------- diff --git a/lib/ts/ink_inet.cc b/lib/ts/ink_inet.cc index 4966525..6fe7a3d 100644 --- a/lib/ts/ink_inet.cc +++ b/lib/ts/ink_inet.cc @@ -98,7 +98,7 @@ ink_inet_addr(const char *s) uint32_t base = 10; if (NULL == s) { - return htonl((uint32_t) - 1); + return htonl((uint32_t)-1); } while (n < 4) { @@ -136,25 +136,25 @@ ink_inet_addr(const char *s) } if (*pc && !ParseRules::is_wslfcr(*pc)) - return htonl((uint32_t) - 1); + return htonl((uint32_t)-1); switch (n) { case 1: return htonl(u[0]); case 2: if (u[0] > 0xff || u[1] > 0xffffff) - return htonl((uint32_t) - 1); + return htonl((uint32_t)-1); return htonl((u[0] << 24) | u[1]); case 3: if (u[0] > 0xff || u[1] > 0xff || u[2] > 0xffff) - return htonl((uint32_t) - 1); + return htonl((uint32_t)-1); return htonl((u[0] << 24) | (u[1] << 16) | u[2]); case 4: if (u[0] > 0xff || u[1] > 0xff || u[2] > 0xff || u[3] > 0xff) - return htonl((uint32_t) - 1); + return htonl((uint32_t)-1); return htonl((u[0] << 24) | (u[1] << 16) | (u[2] << 8) | u[3]); } - return htonl((uint32_t) - 1); + return htonl((uint32_t)-1); } const char *ats_ip_ntop(const struct sockaddr *addr, char *dst, size_t size)
