From 5541a160b603ad5bc76d92e57bc79fb4085d6fdb Mon Sep 17 00:00:00 2001 From: imp Date: Fri, 21 Mar 2008 20:38:28 +0000 Subject: No need to be gratuitously style(9) non-compliant here, even though C++ lets me get away with it. --- sbin/devd/token.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sbin/devd') diff --git a/sbin/devd/token.l b/sbin/devd/token.l index 0fa78da..35e8a18 100644 --- a/sbin/devd/token.l +++ b/sbin/devd/token.l @@ -61,10 +61,10 @@ update_lineno(const char *cp) \} { return ENDBLOCK; } [0-9]+ { yylval.i = atoi(yytext); return NUMBER; } \"[^"]+\" { - update_lineno(yytext); int len = strlen(yytext) - 2; char *walker; int i; + update_lineno(yytext); if ((yylval.str = (char *) malloc(len + 1)) == NULL) goto out; walker = yylval.str; -- cgit v1.1