Source-Changes-HG archive

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

[src/trunk]: src/sbin/setkey Don't assign NULL to a char.



details:   https://anonhg.NetBSD.org/src/rev/0a8e268f37ef
branches:  trunk
changeset: 553766:0a8e268f37ef
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Oct 21 02:38:15 2003 +0000

description:
Don't assign NULL to a char.

diffstat:

 sbin/setkey/token.l |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r dc8a27de882a -r 0a8e268f37ef sbin/setkey/token.l
--- a/sbin/setkey/token.l       Tue Oct 21 02:37:22 2003 +0000
+++ b/sbin/setkey/token.l       Tue Oct 21 02:38:15 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: token.l,v 1.14 2003/09/12 07:45:22 itojun Exp $        */
+/*     $NetBSD: token.l,v 1.15 2003/10/21 02:38:15 fvdl Exp $  */
 /*     $KAME: token.l,v 1.43 2003/07/25 09:35:28 itojun Exp $  */
 
 /*
@@ -114,7 +114,7 @@
                        /* count up for nl */
                            {
                                char *p;
-                               for (p = yytext; *p != NULL; p++)
+                               for (p = yytext; *p != 0; p++)
                                        if (*p == '\n')
                                                lineno++;
                            }
@@ -223,7 +223,7 @@
 {quotedstring} {
                        char *p = yytext;
                        while (*++p != '"') ;
-                       *p = NULL;
+                       *p = 0;
                        yytext++;
                        yylval.val.len = yyleng - 2;
                        yylval.val.buf = strdup(yytext);



Home | Main Index | Thread Index | Old Index