Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm Variable rv is always used as a true/false boolen, s...



details:   https://anonhg.NetBSD.org/src/rev/f076db260710
branches:  trunk
changeset: 345601:f076db260710
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Wed Jun 01 12:14:08 2016 +0000

description:
Variable rv is always used as a true/false boolen, so set its type
correctly.

>From PR kern/46369

diffstat:

 sys/uvm/uvm_mmap.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 5a6b43e2217b -r f076db260710 sys/uvm/uvm_mmap.c
--- a/sys/uvm/uvm_mmap.c        Wed Jun 01 12:01:21 2016 +0000
+++ b/sys/uvm/uvm_mmap.c        Wed Jun 01 12:14:08 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_mmap.c,v 1.158 2016/05/24 20:20:57 martin Exp $    */
+/*     $NetBSD: uvm_mmap.c,v 1.159 2016/06/01 12:14:08 pgoyette Exp $  */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_mmap.c,v 1.158 2016/05/24 20:20:57 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_mmap.c,v 1.159 2016/06/01 12:14:08 pgoyette Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_pax.h"
@@ -453,7 +453,8 @@
        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