summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/inet_ntoa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/net/inet_ntoa.c')
-rw-r--r--src/lib/libc/net/inet_ntoa.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/libc/net/inet_ntoa.c b/src/lib/libc/net/inet_ntoa.c
index bd3fd98b09..0e7fe863f6 100644
--- a/src/lib/libc/net/inet_ntoa.c
+++ b/src/lib/libc/net/inet_ntoa.c
@@ -28,7 +28,7 @@
28 */ 28 */
29 29
30#if defined(LIBC_SCCS) && !defined(lint) 30#if defined(LIBC_SCCS) && !defined(lint)
31static char rcsid[] = "$OpenBSD: inet_ntoa.c,v 1.4 2003/06/02 20:18:35 millert Exp $"; 31static char rcsid[] = "$OpenBSD: inet_ntoa.c,v 1.5 2005/03/25 13:24:12 otto Exp $";
32#endif /* LIBC_SCCS and not lint */ 32#endif /* LIBC_SCCS and not lint */
33 33
34/* 34/*
@@ -41,11 +41,10 @@ static char rcsid[] = "$OpenBSD: inet_ntoa.c,v 1.4 2003/06/02 20:18:35 millert E
41#include <stdio.h> 41#include <stdio.h>
42 42
43char * 43char *
44inet_ntoa(in) 44inet_ntoa(struct in_addr in)
45 struct in_addr in;
46{ 45{
47 static char b[18]; 46 static char b[18];
48 register char *p; 47 char *p;
49 48
50 p = (char *)&in; 49 p = (char *)&in;
51#define UC(b) (((int)b)&0xff) 50#define UC(b) (((int)b)&0xff)