Source-Changes-HG archive

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

[src/trunk]: src/bin/sh Use '\0' instead of NULL in two checks (we are not ch...



details:   https://anonhg.NetBSD.org/src/rev/71e0d778343f
branches:  trunk
changeset: 550975:71e0d778343f
user:      jmmv <jmmv%NetBSD.org@localhost>
date:      Tue Aug 26 18:13:25 2003 +0000

description:
Use '\0' instead of NULL in two checks (we are not checking for a pointer
value).  While here, add a missing whitespace.

diffstat:

 bin/sh/trap.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r 3d5b3c7d1495 -r 71e0d778343f bin/sh/trap.c
--- a/bin/sh/trap.c     Tue Aug 26 18:12:33 2003 +0000
+++ b/bin/sh/trap.c     Tue Aug 26 18:13:25 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.29 2003/08/07 09:05:39 agc Exp $    */
+/*     $NetBSD: trap.c,v 1.30 2003/08/26 18:13:25 jmmv Exp $   */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)trap.c     8.5 (Berkeley) 6/5/95";
 #else
-__RCSID("$NetBSD: trap.c,v 1.29 2003/08/07 09:05:39 agc Exp $");
+__RCSID("$NetBSD: trap.c,v 1.30 2003/08/26 18:13:25 jmmv Exp $");
 #endif
 #endif /* not lint */
 
@@ -152,10 +152,10 @@
                        return 0;
 
        if (signame_to_signum(*ap) == -1) {
-               if ((*ap)[0] =='-') {
-                       if ((*ap)[1] == NULL)
+               if ((*ap)[0] == '-') {
+                       if ((*ap)[1] == '\0')
                                ap++;
-                       else if ((*ap)[1] == 'l' && (*ap)[2] == NULL) {
+                       else if ((*ap)[1] == 'l' && (*ap)[2] == '\0') {
                                printsignals();
                                return 0;
                        }



Home | Main Index | Thread Index | Old Index