Module Name: src
Committed By: njoly
Date: Thu Apr 8 15:59:37 UTC 2010
Modified Files:
src/sys/compat/linux/common: linux_time.c
src/sys/compat/linux32/common: linux32_time.c
Log Message:
Do not use 0 for pointers, but NULL.
To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sys/compat/linux/common/linux_time.c
cvs rdiff -u -r1.32 -r1.33 src/sys/compat/linux32/common/linux32_time.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/compat/linux/common/linux_time.c
diff -u src/sys/compat/linux/common/linux_time.c:1.32 src/sys/compat/linux/common/linux_time.c:1.33
--- src/sys/compat/linux/common/linux_time.c:1.32 Thu Apr 8 11:51:13 2010
+++ src/sys/compat/linux/common/linux_time.c Thu Apr 8 15:59:37 2010
@@ -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;
Index: src/sys/compat/linux32/common/linux32_time.c
diff -u src/sys/compat/linux32/common/linux32_time.c:1.32 src/sys/compat/linux32/common/linux32_time.c:1.33
--- src/sys/compat/linux32/common/linux32_time.c:1.32 Thu Apr 8 11:51:13 2010
+++ src/sys/compat/linux32/common/linux32_time.c Thu Apr 8 15:59:37 2010
@@ -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;