From 1524ac9606cde080a010471080bcb2b0a530940a Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse Date: Fri, 10 Nov 2023 16:02:48 +0000 Subject: sync with NetBSD -r1.38: remove unused NULL pointer that was passed to printf %s. --- usr.bin/fgen/fgen.l | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; -- cgit v1.2.3