PR/22062: Dheeraj S: Don't compare an integral type with NULL.

This commit is contained in:
christos 2003-07-06 16:19:18 +00:00
parent 94dffe1c93
commit b6dc1230b9
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: uvm_mmap.c,v 1.74 2003/06/29 22:32:51 fvdl Exp $ */
/* $NetBSD: uvm_mmap.c,v 1.75 2003/07/06 16:19:18 christos Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@ -51,7 +51,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: uvm_mmap.c,v 1.74 2003/06/29 22:32:51 fvdl Exp $");
__KERNEL_RCSID(0, "$NetBSD: uvm_mmap.c,v 1.75 2003/07/06 16:19:18 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -349,7 +349,7 @@ sys_mmap(l, v, retval)
if (addr > addr + size)
return (EOVERFLOW); /* no wrapping! */
} else if (addr == NULL || !(flags & MAP_TRYFIXED)) {
} else if (addr == 0 || !(flags & MAP_TRYFIXED)) {
/*
* not fixed: make sure we skip over the largest