diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2011-04-09 14:48:10 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2011-04-09 14:48:10 +0000 |
commit | 0fe3d07ce745f14f91b3847836dc41f73853c228 (patch) | |
tree | 181fd9977b2abfb3c0213832a570c25ce034aa16 | |
parent | d0d3977662d32db8a559170c74ee0782688ba0e3 (diff) |
More NULL -> 0 fallout.
-rw-r--r-- | lib/libpthread/uthread/uthread_closefrom.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/uthread/uthread_closefrom.c b/lib/libpthread/uthread/uthread_closefrom.c index 38a6eb79de3..4747aa20db8 100644 --- a/lib/libpthread/uthread/uthread_closefrom.c +++ b/lib/libpthread/uthread/uthread_closefrom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_closefrom.c,v 1.4 2007/04/27 12:59:24 kurt Exp $ */ +/* $OpenBSD: uthread_closefrom.c,v 1.5 2011/04/09 14:48:09 miod Exp $ */ /* PUBLIC DOMAIN: No Rights Reserved. Marco S Hyman <marc@snafu.org> */ @@ -58,7 +58,7 @@ closefrom(int fd) * flag when needed. */ for (lock_fd = fd; lock_fd < _thread_max_fdtsize; lock_fd++) { - if (flags[lock_fd] != NULL) { + if (flags[lock_fd] != 0) { _thread_fd_entry_close(lock_fd); } } @@ -75,7 +75,7 @@ closefrom(int fd) * Unlock any locked entries. */ for (lock_fd = fd; lock_fd < _thread_max_fdtsize; lock_fd++) { - if (flags[lock_fd] != NULL) { + if (flags[lock_fd] != 0) { _FD_UNLOCK(lock_fd, FD_RDWR_CLOSE); } } |