aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/setkey
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2004-03-11 11:41:54 +0000
committerBruce Evans <bde@FreeBSD.org>2004-03-11 11:41:54 +0000
commit8153ab0e6fb5c344655c9ff21bffc2cc07ff1074 (patch)
tree60c05b328dfb24913ac7f3964fd26459b90575c9 /usr.sbin/setkey
parentc04458955453548dd99e755efb6acc03d9f5f835 (diff)
downloadsrc-8153ab0e6fb5c344655c9ff21bffc2cc07ff1074.tar.gz
src-8153ab0e6fb5c344655c9ff21bffc2cc07ff1074.zip
Fixed mispellings of '\0' as NULL.
Notes
Notes: svn path=/head/; revision=126843
Diffstat (limited to 'usr.sbin/setkey')
-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 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);