diff options
author | phk <phk@FreeBSD.org> | 1997-09-18 14:08:40 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1997-09-18 14:08:40 +0000 |
commit | d8ac4091605cafeed429956439b3365036470356 (patch) | |
tree | 86f85152c10afe3de06afc06d7738c614a3210cb /libexec/lfs_cleanerd | |
parent | 2d831c7d21d4e39820d9fe862e7ec818476c083b (diff) | |
download | FreeBSD-src-d8ac4091605cafeed429956439b3365036470356.zip FreeBSD-src-d8ac4091605cafeed429956439b3365036470356.tar.gz |
Many places in the code NULL is used in integer context, where
plain 0 should be used. This happens to work because we #define
NULL to 0, but is stylistically wrong and can cause problems
for people trying to port bits of code to other environments.
PR: 2752
Submitted by: Arne Henrik Juul <arnej@imf.unit.no>
Diffstat (limited to 'libexec/lfs_cleanerd')
-rw-r--r-- | libexec/lfs_cleanerd/library.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/lfs_cleanerd/library.c b/libexec/lfs_cleanerd/library.c index b72aad8..1a83076 100644 --- a/libexec/lfs_cleanerd/library.c +++ b/libexec/lfs_cleanerd/library.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: library.c,v 1.7 1997/02/22 14:21:45 peter Exp $ */ #ifndef lint @@ -544,7 +544,7 @@ mmap_segment (fsp, segment, segbuf, use_mmap) MAP_SHARED, fid, seg_byte); if (*segbuf == MAP_FAILED) { err(0, "mmap_segment: mmap failed"); - return (NULL); + return (0); } } else { #ifdef VERBOSE @@ -555,7 +555,7 @@ mmap_segment (fsp, segment, segbuf, use_mmap) *segbuf = malloc(ssize); if (!*segbuf) { err(0, "mmap_segment: malloc failed"); - return(NULL); + return(0); } /* read the segment data into the buffer */ |