From e75676d9a4dd6dc275d3a233cc60f7624c62f189 Mon Sep 17 00:00:00 2001 From: FRIGN Date: Thu, 14 Jul 2016 13:10:34 +0200 Subject: [PATCH] Simplify usage() --- sent.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sent.c b/sent.c index a9ca274..da75439 100644 --- a/sent.c +++ b/sent.c @@ -645,8 +645,7 @@ configure(XEvent *e) void usage() { - die("sent " VERSION " (c) 2014-2015 markus.teich@stusta.mhn.de\n" \ - "usage: sent [FILE]\n", argv0); + die("usage: %s [file]\n", argv0); } int @@ -656,6 +655,8 @@ main(int argc, char *argv[]) ARGBEGIN { case 'v': + fprintf(stderr, "sent-"VERSION"\n"); + return 0; default: usage(); } ARGEND;