summaryrefslogtreecommitdiffstats
path: root/sbin/setkey/token.l
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/setkey/token.l')
-rw-r--r--sbin/setkey/token.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/setkey/token.l b/sbin/setkey/token.l
index 9bea6ae..74c1e17 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);
OpenPOWER on IntegriCloud