From 8153ab0e6fb5c344655c9ff21bffc2cc07ff1074 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Thu, 11 Mar 2004 11:41:54 +0000 Subject: [PATCH] Fixed mispellings of '\0' as NULL. --- sbin/setkey/token.l | 4 ++-- usr.sbin/setkey/token.l | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sbin/setkey/token.l b/sbin/setkey/token.l index 9bea6ae490d4..74c1e17cbcef 100644 --- a/sbin/setkey/token.l +++ b/sbin/setkey/token.l @@ -110,7 +110,7 @@ tagged { return(TAGGED); } /* count up for nl */ { char *p; - for (p = yytext; *p != NULL; p++) + for (p = yytext; *p != '\0'; p++) if (*p == '\n') lineno++; } @@ -221,7 +221,7 @@ any { return(ANY); } {quotedstring} { char *p = yytext; while (*++p != '"') ; - *p = NULL; + *p = '\0'; yytext++; yylval.val.len = yyleng - 2; yylval.val.buf = strdup(yytext); diff --git a/usr.sbin/setkey/token.l b/usr.sbin/setkey/token.l index 9bea6ae490d4..74c1e17cbcef 100644 --- a/usr.sbin/setkey/token.l +++ b/usr.sbin/setkey/token.l @@ -110,7 +110,7 @@ tagged { return(TAGGED); } /* count up for nl */ { char *p; - for (p = yytext; *p != NULL; p++) + for (p = yytext; *p != '\0'; p++) if (*p == '\n') lineno++; } @@ -221,7 +221,7 @@ any { return(ANY); } {quotedstring} { char *p = yytext; while (*++p != '"') ; - *p = NULL; + *p = '\0'; yytext++; yylval.val.len = yyleng - 2; yylval.val.buf = strdup(yytext);