]> andersk Git - openssh.git/blobdiff - openbsd-compat/inet_ntoa.c
- (djm) Sync openbsd-compat with OpenBSD -current
[openssh.git] / openbsd-compat / inet_ntoa.c
index ad228229cc4e008325dbc25bad103097644f2c13..ac5f567081eb56603372060cf4491eb95cebc67d 100644 (file)
@@ -36,7 +36,7 @@
 #if defined(BROKEN_INET_NTOA) || !defined(HAVE_INET_NTOA)
 
 #if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: inet_ntoa.c,v 1.2 1996/08/19 08:29:16 tholo Exp $";
+static char rcsid[] = "$OpenBSD: inet_ntoa.c,v 1.3 2002/06/27 10:14:01 itojun Exp $";
 #endif /* LIBC_SCCS and not lint */
 
 /*
@@ -57,7 +57,7 @@ char *inet_ntoa(struct in_addr in)
        p = (char *)∈
 #define        UC(b)   (((int)b)&0xff)
        (void)snprintf(b, sizeof(b),
-           "%d.%d.%d.%d", UC(p[0]), UC(p[1]), UC(p[2]), UC(p[3]));
+           "%u.%u.%u.%u", UC(p[0]), UC(p[1]), UC(p[2]), UC(p[3]));
        return (b);
 }
 
This page took 0.031893 seconds and 4 git commands to generate.