diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-12-01 03:02:50 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-12-01 03:02:50 +0000 |
commit | d1438c4b20353d2acc67c637f2e14e3084db3596 (patch) | |
tree | fc05a3806ce403f17aa0813b1bbb31444d7a30ce | |
parent | f238a3e58b73de3f21c55ccd8384f706e8548ce4 (diff) | |
download | samba-d1438c4b20353d2acc67c637f2e14e3084db3596.tar.gz samba-d1438c4b20353d2acc67c637f2e14e3084db3596.tar.bz2 samba-d1438c4b20353d2acc67c637f2e14e3084db3596.zip |
POSIX indicates that this is always in network byte order, so we don't need the
little-endian case (tested on Intel-linux).
Andrew Bartlett
(This used to be commit 281b713b12ece63d499652df193509c57312b749)
-rw-r--r-- | source3/lib/replace.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/source3/lib/replace.c b/source3/lib/replace.c index 913cd29b23..cd48b8d160 100644 --- a/source3/lib/replace.c +++ b/source3/lib/replace.c @@ -328,13 +328,8 @@ char *rep_inet_ntoa(struct in_addr ip) { unsigned char *p = (unsigned char *)&ip.s_addr; static char buf[18]; -#if WORDS_BIGENDIAN slprintf(buf, 17, "%d.%d.%d.%d", (int)p[0], (int)p[1], (int)p[2], (int)p[3]); -#else /* WORDS_BIGENDIAN */ - slprintf(buf, 17, "%d.%d.%d.%d", - (int)p[3], (int)p[2], (int)p[1], (int)p[0]); -#endif /* WORDS_BIGENDIAN */ return buf; } #endif /* REPLACE_INET_NTOA */ |