1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01: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
wrong_args( const char *text)
{
fputs(_("usage: gpg [options] "),stderr);
fputs(text,stderr);
putc('\n',stderr);
g10_exit(2);
fprintf (stderr, _("usage: %s [options] %s\n"), GPG_NAME, text);
g10_exit(2);
}

View File

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