1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-02 22:38:02 +02:00

gpg,gpgsm: Simplify wrong_args function.

This commit is contained in:
Werner Koch 2014-06-25 20:25:28 +02:00
parent c029a184d6
commit 572502bd2c
2 changed files with 3 additions and 7 deletions

View File

@ -1018,10 +1018,8 @@ build_list (const char *text, char letter,
static void static void
wrong_args( const char *text) wrong_args( const char *text)
{ {
fputs(_("usage: gpg [options] "),stderr); fprintf (stderr, _("usage: %s [options] %s\n"), GPG_NAME, text);
fputs(text,stderr); g10_exit(2);
putc('\n',stderr);
g10_exit(2);
} }

View File

@ -636,9 +636,7 @@ set_binary (FILE *fp)
static void static void
wrong_args (const char *text) wrong_args (const char *text)
{ {
fputs (_("usage: gpgsm [options] "), stderr); fprintf (stderr, _("usage: %s [options] %s\n"), GPGSM_NAME, text);
fputs (text, stderr);
putc ('\n', stderr);
gpgsm_exit (2); gpgsm_exit (2);
} }