diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-03-14 23:08:07 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-03-14 23:08:07 +0000 |
commit | f779382c98d99e6d7457e2c790d177db942b5af3 (patch) | |
tree | d934e1330cc5a274507d31acd79e0912bd7753c0 /sys/lib/libsa/alloc.c | |
parent | 178b3485055aca748b4147efb3bd65e18a4f77a6 (diff) |
Change a bunch of (<blah> *)0 to NULL.
ok beck@ deraadt@
Diffstat (limited to 'sys/lib/libsa/alloc.c')
-rw-r--r-- | sys/lib/libsa/alloc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/lib/libsa/alloc.c b/sys/lib/libsa/alloc.c index 1714ec06600..5b51787733e 100644 --- a/sys/lib/libsa/alloc.c +++ b/sys/lib/libsa/alloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: alloc.c,v 1.11 2015/09/14 17:34:04 semarie Exp $ */ +/* $OpenBSD: alloc.c,v 1.12 2016/03/14 23:08:06 krw Exp $ */ /* $NetBSD: alloc.c,v 1.6 1997/02/04 18:36:33 thorpej Exp $ */ /* @@ -115,7 +115,7 @@ struct fl { unsigned size; struct fl *next; -} *freelist = (struct fl *)0; +} *freelist = NULL; #ifdef NEEDS_HEAP_H #include "heap.h" @@ -148,10 +148,10 @@ alloc(unsigned int size) #endif #ifdef ALLOC_FIRST_FIT - while (*f != (struct fl *)0 && (*f)->size < size) + while (*f != NULL && (*f)->size < size) f = &((*f)->next); bestf = f; - failed = (*bestf == (struct fl *)0); + failed = (*bestf == NULL); #else /* scan freelist */ while (*f) { |