[hackers] [sent] Simplify usage() || FRIGN

From: <git_AT_suckless.org>
Date: Thu, 14 Jul 2016 22:24:08 +0200 (CEST)

commit e75676d9a4dd6dc275d3a233cc60f7624c62f189
Author: FRIGN <dev_AT_frign.de>
AuthorDate: Thu Jul 14 13:10:34 2016 +0200
Commit: Markus Teich <markus.teich_AT_stusta.mhn.de>
CommitDate: Thu Jul 14 22:23:46 2016 +0200

    Simplify usage()

diff --git a/sent.c b/sent.c
index a9ca274..da75439 100644
--- a/sent.c
+++ b/sent.c
_AT_@ -645,8 +645,7 @@ configure(XEvent *e)
 void
 usage()
 {
- die("sent " VERSION " (c) 2014-2015 markus.teich_AT_stusta.mhn.de\n" \
- "usage: sent [FILE]\n", argv0);
+ die("usage: %s [file]\n", argv0);
 }
 
 int
_AT_@ -656,6 +655,8 @@ main(int argc, char *argv[])
 
         ARGBEGIN {
         case 'v':
+ fprintf(stderr, "sent-"VERSION"\n");
+ return 0;
         default:
                 usage();
         } ARGEND;
Received on Thu Jul 14 2016 - 22:24:08 CEST

This archive was generated by hypermail 2.3.0 : Thu Jul 14 2016 - 22:36:13 CEST