diff options
author | Damien Miller <djm@mindrot.org> | 2002-09-11 02:29:11 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-09-11 02:29:11 +0200 |
commit | 71eb0c1550ec6ad10d29779df7a7f97c44000e3a (patch) | |
tree | 1cbfd081547bcf3bfcc26e17f2f4537a03ced5ff /openbsd-compat/inet_ntoa.c | |
parent | - (djm) Bug #138: Make protocol 1 blowfish work with old OpenSSL. (diff) | |
download | openssh-71eb0c1550ec6ad10d29779df7a7f97c44000e3a.tar.xz openssh-71eb0c1550ec6ad10d29779df7a7f97c44000e3a.zip |
- (djm) Sync openbsd-compat with OpenBSD -current
Diffstat (limited to 'openbsd-compat/inet_ntoa.c')
-rw-r--r-- | openbsd-compat/inet_ntoa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/inet_ntoa.c b/openbsd-compat/inet_ntoa.c index ad228229c..ac5f56708 100644 --- a/openbsd-compat/inet_ntoa.c +++ b/openbsd-compat/inet_ntoa.c @@ -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); } |