summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2023-11-10 16:02:48 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2023-11-10 16:02:48 +0000
commit1524ac9606cde080a010471080bcb2b0a530940a (patch)
tree43c36bcd82c262a9ad667e406e94a2bf4ed5ca53
parent67680ffa08ea8739b777a8b57ac3ac62eb1b1c2f (diff)
sync with NetBSD -r1.38:
remove unused NULL pointer that was passed to printf %s.
-rw-r--r--usr.bin/fgen/fgen.l5
1 files 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;