aboutsummaryrefslogtreecommitdiffstats
path: root/g10/gpg.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2014-06-25 18:25:28 +0000
committerWerner Koch <[email protected]>2014-06-26 15:07:47 +0000
commit572502bd2c0637429bca547ba882629640477495 (patch)
treea8542dda196fae5bc5069113a881ea9cc889b527 /g10/gpg.c
parentspeedo: "make clean-gnupg" may not remove the source. (diff)
downloadgnupg-572502bd2c0637429bca547ba882629640477495.tar.gz
gnupg-572502bd2c0637429bca547ba882629640477495.zip
gpg,gpgsm: Simplify wrong_args function.
Diffstat (limited to '')
-rw-r--r--g10/gpg.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/g10/gpg.c b/g10/gpg.c
index 47cc85104..361420107 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -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);
}