artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
158420d
)
(char *)0 -> NULL
author
mmcc
<mmcc@openbsd.org>
Mon, 26 Oct 2015 14:48:54 +0000
(14:48 +0000)
committer
mmcc
<mmcc@openbsd.org>
Mon, 26 Oct 2015 14:48:54 +0000
(14:48 +0000)
ok tedu@
sys/lib/libsa/net.c
patch
|
blob
|
history
diff --git
a/sys/lib/libsa/net.c
b/sys/lib/libsa/net.c
index
f2ccb46
..
4f0c6e7
100644
(file)
--- a/
sys/lib/libsa/net.c
+++ b/
sys/lib/libsa/net.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: net.c,v 1.
19 2015/10/26 02:33:07
mmcc Exp $ */
+/* $OpenBSD: net.c,v 1.
20 2015/10/26 14:48:54
mmcc Exp $ */
/* $NetBSD: net.c,v 1.14 1996/10/13 02:29:02 christos Exp $ */
/*
@@
-244,7
+244,7
@@
ip_convertaddr(const char *p)
#define IP_ANYADDR 0
u_int32_t addr = 0, n;
- if (p ==
(char *)0
|| *p == '\0')
+ if (p ==
NULL
|| *p == '\0')
return IP_ANYADDR;
p = number(p, &n);
addr |= (n << 24) & 0xff000000;