Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/netbsd32 Fix NULL vs. int comparison.
details: https://anonhg.NetBSD.org/src/rev/55fb915be0e6
branches: trunk
changeset: 553741:55fb915be0e6
user: fvdl <fvdl%NetBSD.org@localhost>
date: Tue Oct 21 01:44:45 2003 +0000
description:
Fix NULL vs. int comparison.
diffstat:
sys/compat/netbsd32/netbsd32_time.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 1a0ffbdcf505 -r 55fb915be0e6 sys/compat/netbsd32/netbsd32_time.c
--- a/sys/compat/netbsd32/netbsd32_time.c Tue Oct 21 01:38:42 2003 +0000
+++ b/sys/compat/netbsd32/netbsd32_time.c Tue Oct 21 01:44:45 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_time.c,v 1.5 2003/01/18 08:28:26 thorpej Exp $ */
+/* $NetBSD: netbsd32_time.c,v 1.6 2003/10/21 01:44:45 fvdl Exp $ */
/*
* Copyright (c) 1998, 2001 Matthew R. Green
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_time.c,v 1.5 2003/01/18 08:28:26 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_time.c,v 1.6 2003/10/21 01:44:45 fvdl Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ntp.h"
@@ -299,7 +299,7 @@
if (itvp && (error = copyin(itvp, &s32it, sizeof(s32it))))
return (error);
netbsd32_to_itimerval(&s32it, &aitv);
- if (SCARG(uap, oitv) != NULL) {
+ if (SCARG(uap, oitv) != 0) {
SCARG(&getargs, which) = which;
SCARG(&getargs, itv) = SCARG(uap, oitv);
if ((error = netbsd32_getitimer(l, &getargs, retval)) != 0)
Home |
Main Index |
Thread Index |
Old Index