summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2004-03-11 11:41:54 +0000
committerbde <bde@FreeBSD.org>2004-03-11 11:41:54 +0000
commitbe31ea68bb3288af5b81dbc34787a3377ee2ef03 (patch)
tree60c05b328dfb24913ac7f3964fd26459b90575c9 /usr.sbin
parent0f0e6e75d46533c144c417035f67610a516ad522 (diff)
downloadFreeBSD-src-be31ea68bb3288af5b81dbc34787a3377ee2ef03.zip
FreeBSD-src-be31ea68bb3288af5b81dbc34787a3377ee2ef03.tar.gz
Fixed mispellings of '\0' as NULL.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/setkey/token.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/setkey/token.l b/usr.sbin/setkey/token.l
index 9bea6ae..74c1e17 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);
OpenPOWER on IntegriCloud