From: jasper Date: Fri, 10 Nov 2023 16:02:47 +0000 (+0000) Subject: sync with NetBSD -r1.38: X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e42b1370519987d4016f4bec70b47a4c9e9c737a;p=openbsd sync with NetBSD -r1.38: remove unused NULL pointer that was passed to printf %s. --- diff --git a/usr.bin/fgen/fgen.l b/usr.bin/fgen/fgen.l index 5c14572a9fc..bce0267e45e 100644 --- a/usr.bin/fgen/fgen.l +++ b/usr.bin/fgen/fgen.l @@ -1,5 +1,5 @@ %{ -/* $OpenBSD: fgen.l,v 1.15 2022/12/26 19:16:00 jmc Exp $ */ +/* $OpenBSD: fgen.l,v 1.16 2023/11/10 16:02:47 jasper Exp $ */ /* $NetBSD: fgen.l,v 1.37 2016/03/08 20:13:44 christos Exp $ */ /* FLEX input for FORTH input file scanner */ /* @@ -79,7 +79,6 @@ static char *outbuf = NULL; static char *outfile, *infile; #define BUFCLICK (1024*1024) static size_t outbufsiz = 0; -static char *myname = NULL; static int offsetsize = 8; static int defining = 0; static int tokenizer = 0; @@ -2063,7 +2062,7 @@ tokenize(YY_BUFFER_STATE yinput) #else token_err(yylineno, infile, yytext, "%s: undefined token `%s'\n", - myname, token->text); + __func__, token->text); #endif } break;