Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/linux/common Use "NULL" and not "0" for null poin...



details:   https://anonhg.NetBSD.org/src/rev/f82ed3e05787
branches:  trunk
changeset: 495471:f82ed3e05787
user:      tron <tron%NetBSD.org@localhost>
date:      Fri Jul 28 21:38:44 2000 +0000

description:
Use "NULL" and not "0" for null pointers.

diffstat:

 sys/compat/linux/common/linux_signal.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 56a85402c4a8 -r f82ed3e05787 sys/compat/linux/common/linux_signal.c
--- a/sys/compat/linux/common/linux_signal.c    Fri Jul 28 21:38:43 2000 +0000
+++ b/sys/compat/linux/common/linux_signal.c    Fri Jul 28 21:38:44 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_signal.c,v 1.26 2000/03/30 11:27:18 augustss Exp $       */
+/*     $NetBSD: linux_signal.c,v 1.27 2000/07/28 21:38:44 tron Exp $   */
 /*-
  * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -345,7 +345,7 @@
        if (sig < 0 || sig >= LINUX__NSIG)
                return (EINVAL);
        error = sigaction1(p, linux_to_native_sig[sig],
-           SCARG(uap, nsa) ? &nbsa : 0, SCARG(uap, osa) ? &obsa : 0);
+           SCARG(uap, nsa) ? &nbsa : NULL, SCARG(uap, osa) ? &obsa : NULL);
        if (error)
                return (error);
        if (SCARG(uap, osa)) {
@@ -389,7 +389,7 @@
                linux_old_to_native_sigset(&nlss, &nbss);
        }
        error = sigprocmask1(p, how,
-           set ? &nbss : 0, oset ? &obss : 0);
+           set ? &nbss : NULL, oset ? &obss : NULL);
        if (error)
                return (error); 
        if (oset) {
@@ -446,7 +446,7 @@
                linux_to_native_sigset(&nlss, &nbss);
        }
        error = sigprocmask1(p, how,
-           set ? &nbss : 0, oset ? &obss : 0);
+           set ? &nbss : NULL, oset ? &obss : NULL);
        if (error)
                return (error); 
        if (oset) {



Home | Main Index | Thread Index | Old Index