diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2011-04-06 11:36:27 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2011-04-06 11:36:27 +0000 |
commit | e2ddf551fe54f5fd63dbb0131d6835d07f172753 (patch) | |
tree | ee263115c37260360e628dc4fc5e029d18e30311 /usr.sbin/ppp | |
parent | ecdee9dbaa69f9aa6f959777e5e515c31bb6a0f8 (diff) |
Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'
for chars.
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/ppp/physical.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ppp/physical.h b/usr.sbin/ppp/ppp/physical.h index 75a30e8e624..878cc434afe 100644 --- a/usr.sbin/ppp/ppp/physical.h +++ b/usr.sbin/ppp/ppp/physical.h @@ -16,7 +16,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $OpenBSD: physical.h,v 1.20 2002/05/16 01:13:39 brian Exp $ + * $OpenBSD: physical.h,v 1.21 2011/04/06 11:36:26 miod Exp $ * */ @@ -114,7 +114,7 @@ struct physical { }; #define field2phys(fp, name) \ - ((struct physical *)((char *)fp - (int)(&((struct physical *)0)->name))) + ((struct physical *)((char *)fp - (int)(&((struct physical *)NULL)->name))) #define link2physical(l) \ ((l)->type == PHYSICAL_LINK ? field2phys(l, link) : NULL) |