Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Use NULL where appropriate.



details:   https://anonhg.NetBSD.org/src/rev/b59456cad77b
branches:  trunk
changeset: 583416:b59456cad77b
user:      junyoung <junyoung%NetBSD.org@localhost>
date:      Fri Aug 05 11:14:32 2005 +0000

description:
Use NULL where appropriate.

diffstat:

 sys/kern/kern_exec.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5ba6c46f5229 -r b59456cad77b sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c      Fri Aug 05 11:05:44 2005 +0000
+++ b/sys/kern/kern_exec.c      Fri Aug 05 11:14:32 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_exec.c,v 1.207 2005/07/29 22:57:34 elad Exp $     */
+/*     $NetBSD: kern_exec.c,v 1.208 2005/08/05 11:14:32 junyoung Exp $ */
 
 /*-
  * Copyright (C) 1993, 1994, 1996 Christopher G. Demetriou
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.207 2005/07/29 22:57:34 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.208 2005/08/05 11:14:32 junyoung Exp $");
 
 #include "opt_ktrace.h"
 #include "opt_syscall_debug.h"
@@ -485,7 +485,7 @@
        argp = (char *) uvm_km_alloc(exec_map, NCARGS, 0,
            UVM_KMF_PAGEABLE|UVM_KMF_WAITVA);
 #ifdef DIAGNOSTIC
-       if (argp == (vaddr_t) 0)
+       if (argp == NULL)
                panic("execve: argp == NULL");
 #endif
        dp = argp;



Home | Main Index | Thread Index | Old Index