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:
parent
c029a184d6
commit
572502bd2c
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user