From: mmcc Date: Mon, 26 Oct 2015 14:48:54 +0000 (+0000) Subject: (char *)0 -> NULL X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9ffa8117f28ad1e2b8a77350d9c73ec963f951e7;p=openbsd (char *)0 -> NULL ok tedu@ --- diff --git a/sys/lib/libsa/net.c b/sys/lib/libsa/net.c index f2ccb462475..4f0c6e76852 100644 --- 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;