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