Subject: kern/22068: comparison with 0 rather than NULL in line 352 of /usr/src/sys/uvm/uvm_mmap.c
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dheeraj@ece.gatech.edu>
List: netbsd-bugs
Date: 07/06/2003 03:30:48
>Number:         22068
>Category:       kern
>Synopsis:       comparison with 0 rather than NULL in line 352 of /usr/src/sys/uvm/uvm_mmap.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 06 03:31:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Dheeraj S
>Release:        current 1.6U
>Organization:
>Environment:
NetBSD vagisha 1.6U NetBSD 1.6U (VAGISHA) #0: Sat Jul  5 21:01:42 EDT 2003  root@vagisha:/usr/src/sys/arch/i386/compile/VAGISHA i386

>Description:
the comparison with NULL should be replaced with comparison with 0
since the compiler gives an error. 
regarding comparison of an unsigned int and a pointer
>How-To-Repeat:
just a simple compile
>Fix:
replace comparison addr == NULL with addr == 0
>Release-Note:
>Audit-Trail:
>Unformatted: