NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/46369: Change type of variable rv.



>Number:         46369
>Category:       kern
>Synopsis:       Change type of variable rv.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 25 07:55:00 +0000 2012
>Originator:     Henning Petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
Change type of variable rv from int to bool.
>How-To-Repeat:

>Fix:
diff -u -p -r1.144 uvm_mmap.c
--- sys/uvm/uvm_mmap.c  27 Jan 2012 19:48:41 -0000      1.144
+++ sys/uvm/uvm_mmap.c  22 Apr 2012 09:52:35 -0000
@@ -570,7 +570,8 @@ sys___msync13(struct lwp *l, const struc
        vaddr_t addr;
        vsize_t size, pageoff;
        struct vm_map *map;
-       int error, rv, flags, uvmflags;
+       int error, flags, uvmflags;
+       bool rv;
 
        /*
         * extract syscall args from the uap



Home | Main Index | Thread Index | Old Index