Source-Changes-HG archive

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

[src/trunk]: src/sys/compat Do not use 0 for pointers, but NULL.



details:   https://anonhg.NetBSD.org/src/rev/1437bc4ab876
branches:  trunk
changeset: 753736:1437bc4ab876
user:      njoly <njoly%NetBSD.org@localhost>
date:      Thu Apr 08 15:59:37 2010 +0000

description:
Do not use 0 for pointers, but NULL.

diffstat:

 sys/compat/linux/common/linux_time.c     |  6 +++---
 sys/compat/linux32/common/linux32_time.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 32267e360c97 -r 1437bc4ab876 sys/compat/linux/common/linux_time.c
--- a/sys/compat/linux/common/linux_time.c      Thu Apr 08 15:56:26 2010 +0000
+++ b/sys/compat/linux/common/linux_time.c      Thu Apr 08 15:59:37 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_time.c,v 1.32 2010/04/08 11:51:13 njoly Exp $ */
+/*     $NetBSD: linux_time.c,v 1.33 2010/04/08 15:59:37 njoly Exp $ */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_time.c,v 1.32 2010/04/08 11:51:13 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_time.c,v 1.33 2010/04/08 15:59:37 njoly Exp $");
 
 #include <sys/param.h>
 #include <sys/ucred.h>
@@ -285,7 +285,7 @@
 
        linux_to_native_timespec(&rqts, &lrqts);
 
-       error = nanosleep1(l, &rqts, SCARG(uap, rmtp) ? &rmts : 0);
+       error = nanosleep1(l, &rqts, SCARG(uap, rmtp) ? &rmts : NULL);
        if (SCARG(uap, rmtp) == NULL || (error != 0 && error != EINTR))
                return error;
 
diff -r 32267e360c97 -r 1437bc4ab876 sys/compat/linux32/common/linux32_time.c
--- a/sys/compat/linux32/common/linux32_time.c  Thu Apr 08 15:56:26 2010 +0000
+++ b/sys/compat/linux32/common/linux32_time.c  Thu Apr 08 15:59:37 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux32_time.c,v 1.32 2010/04/08 11:51:13 njoly Exp $ */
+/*     $NetBSD: linux32_time.c,v 1.33 2010/04/08 15:59:37 njoly Exp $ */
 
 /*-
  * Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -33,7 +33,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: linux32_time.c,v 1.32 2010/04/08 11:51:13 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_time.c,v 1.33 2010/04/08 15:59:37 njoly Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -373,7 +373,7 @@
                return error;
        linux32_to_native_timespec(&rqts, &lrqts);
 
-       error = nanosleep1(l, &rqts, SCARG_P32(uap, rmtp) ? &rmts : 0);
+       error = nanosleep1(l, &rqts, SCARG_P32(uap, rmtp) ? &rmts : NULL);
        if (SCARG_P32(uap, rmtp) == NULL || (error != 0 && error != EINTR))
                return error;
 



Home | Main Index | Thread Index | Old Index