Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/fgen remove unused NULL pointer that was passed to p...
details: https://anonhg.NetBSD.org/src/rev/c5fb3a3cc7b7
branches: trunk
changeset: 1013807:c5fb3a3cc7b7
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Sep 06 08:18:21 2020 +0000
description:
remove unused NULL pointer that was passed to printf %s.
diffstat:
usr.bin/fgen/fgen.l | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r c921d9d0b525 -r c5fb3a3cc7b7 usr.bin/fgen/fgen.l
--- a/usr.bin/fgen/fgen.l Sun Sep 06 08:15:04 2020 +0000
+++ b/usr.bin/fgen/fgen.l Sun Sep 06 08:18:21 2020 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: fgen.l,v 1.37 2016/03/08 20:13:44 christos Exp $ */
+/* $NetBSD: fgen.l,v 1.38 2020/09/06 08:18:21 mrg Exp $ */
/* FLEX input for FORTH input file scanner */
/*
* Copyright (c) 1998 Eduardo Horvath.
@@ -42,7 +42,7 @@
#endif
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: fgen.l,v 1.37 2016/03/08 20:13:44 christos Exp $");
+__RCSID("$NetBSD: fgen.l,v 1.38 2020/09/06 08:18:21 mrg Exp $");
#endif
%}
@@ -86,7 +86,6 @@
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;
@@ -2043,7 +2042,7 @@
#else
token_err(yylineno, infile, yytext,
"%s: undefined token `%s'\n",
- myname, token->text);
+ __func__, token->text);
#endif
}
break;
Home |
Main Index |
Thread Index |
Old Index