diff options
| author | christos <christos@NetBSD.org> | 2011-08-14 09:38:05 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2011-08-14 09:38:05 +0000 |
| commit | 5501fa73156818abb94fb9241db22f2da4a5eb5f (patch) | |
| tree | fd7a6ff20b746e8e8145630d25af95934048dbe6 /bin/ed | |
| parent | c6b7451e6e84bef5851436ef3b30facc15829a6b (diff) | |
eliminate non-literal format string.
Diffstat (limited to 'bin/ed')
| -rw-r--r-- | bin/ed/main.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/ed/main.c b/bin/ed/main.c index 22e3f0be863..17163d6b04d 100644 --- a/bin/ed/main.c +++ b/bin/ed/main.c @@ -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 */ } |
