eliminate non-literal format string.
This commit is contained in:
parent
a9157d7432
commit
850af422f9
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: main.c,v 1.23 2011/05/23 23:13:10 joerg Exp $ */
|
||||
/* $NetBSD: main.c,v 1.24 2011/08/14 09:38:05 christos Exp $ */
|
||||
|
||||
/* main.c: This file contains the main control and user-interface routines
|
||||
for the ed line editor. */
|
||||
|
@ -39,7 +39,7 @@ __COPYRIGHT(
|
|||
#if 0
|
||||
static char *rcsid = "@(#)main.c,v 1.1 1994/02/01 00:34:42 alm Exp";
|
||||
#else
|
||||
__RCSID("$NetBSD: main.c,v 1.23 2011/05/23 23:13:10 joerg Exp $");
|
||||
__RCSID("$NetBSD: main.c,v 1.24 2011/08/14 09:38:05 christos Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -104,7 +104,6 @@ int lineno; /* script line number */
|
|||
const char *prompt; /* command-line prompt */
|
||||
const char *dps = "*"; /* default command-line prompt */
|
||||
|
||||
const char *usage = "usage: %s [-] [-sxE] [-p string] [name]\n";
|
||||
|
||||
/* ed: line editor */
|
||||
int
|
||||
|
@ -137,7 +136,9 @@ top:
|
|||
ere = REG_EXTENDED;
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, usage, argv[0]);
|
||||
fprintf(stderr,
|
||||
"Usage: %s [-] [-sxE] [-p string] [name]\n",
|
||||
getprogname());
|
||||
exit(1);
|
||||
/* NOTREACHED */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue