summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-12-01 03:07:42 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-12-01 03:07:42 +0000
commit755893ba3ced5367270cf0934e8bb95788eb759f (patch)
tree4a30521cc1e05b2bbc919bfd166ee55297ca6b9f /source3
parent6afdd6481581ae9eaf8163a6be47acc54fd583d6 (diff)
downloadsamba-755893ba3ced5367270cf0934e8bb95788eb759f.tar.gz
samba-755893ba3ced5367270cf0934e8bb95788eb759f.tar.bz2
samba-755893ba3ced5367270cf0934e8bb95788eb759f.zip
Merge from HEAD, struct in_addr is always in network byte order, so we don't
need a little-endian case here. (This used to be commit 24fb89da51f54cc547f7f963b094b0f3178632e4)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/replace.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/source3/lib/replace.c b/source3/lib/replace.c
index dfc88e7028..a826de3560 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 */