Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/amd64 Fix int vs. NULL comparison.



details:   https://anonhg.NetBSD.org/src/rev/f266e785599c
branches:  trunk
changeset: 553742:f266e785599c
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Oct 21 01:45:25 2003 +0000

description:
Fix int vs. NULL comparison.

diffstat:

 sys/arch/amd64/amd64/netbsd32_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 55fb915be0e6 -r f266e785599c sys/arch/amd64/amd64/netbsd32_machdep.c
--- a/sys/arch/amd64/amd64/netbsd32_machdep.c   Tue Oct 21 01:44:45 2003 +0000
+++ b/sys/arch/amd64/amd64/netbsd32_machdep.c   Tue Oct 21 01:45:25 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_machdep.c,v 1.6 2003/10/13 18:47:10 fvdl Exp $        */
+/*     $NetBSD: netbsd32_machdep.c,v 1.7 2003/10/21 01:45:25 fvdl Exp $        */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.6 2003/10/13 18:47:10 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.7 2003/10/21 01:45:25 fvdl Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_user_ldt.h"
@@ -275,7 +275,7 @@
        netbsd32_si_to_si32(&frame.sf_si, (siginfo_t *)&ksi->ksi_info);
        frame.sf_uc.uc_flags = _UC_SIGMASK;
        frame.sf_uc.uc_sigmask = *mask;
-       frame.sf_uc.uc_link = NULL;
+       frame.sf_uc.uc_link = 0;
        frame.sf_uc.uc_flags |= (p->p_sigctx.ps_sigstk.ss_flags & SS_ONSTACK)
            ? _UC_SETSTACK : _UC_CLRSTACK;
        memset(&frame.sf_uc.uc_stack, 0, sizeof(frame.sf_uc.uc_stack));



Home | Main Index | Thread Index | Old Index