diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-12-01 03:07:42 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-12-01 03:07:42 +0000 |
commit | 24fb89da51f54cc547f7f963b094b0f3178632e4 (patch) | |
tree | af802e4159501b7727ec1b23eead8f81e7f75d7f /source/lib/replace.c | |
parent | e6f2d9dfdb76a2d3f90354eb38f88709773353cb (diff) | |
download | samba-24fb89da51f54cc547f7f963b094b0f3178632e4.tar.gz samba-24fb89da51f54cc547f7f963b094b0f3178632e4.tar.xz samba-24fb89da51f54cc547f7f963b094b0f3178632e4.zip |
Merge from HEAD, struct in_addr is always in network byte order, so we don't
need a little-endian case here.
Diffstat (limited to 'source/lib/replace.c')
-rw-r--r-- | source/lib/replace.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/source/lib/replace.c b/source/lib/replace.c index dfc88e70281..a826de3560e 100644 --- a/source/lib/replace.c +++ b/source/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 */ |