[hackers] [quark] Use die() in usage() || FRIGN
commit 89d7bbb9c394a963d75ea335fd296c914f82b8e0
Author: FRIGN <dev_AT_frign.de>
AuthorDate: Sun Sep 4 23:09:02 2016 +0200
Commit: FRIGN <dev_AT_frign.de>
CommitDate: Sun Sep 4 23:09:02 2016 +0200
Use die() in usage()
diff --git a/quark.c b/quark.c
index 7e6530f..9d22df1 100644
--- a/quark.c
+++ b/quark.c
_AT_@ -641,9 +641,8 @@ getusock(char *udsname)
static void
usage(void)
{
- fprintf(stderr, "usage: %s [-v] [[[-h host] [-p port]] | "
- "[-U udsocket]] [-d dir] [-u user] [-g group]\n", argv0);
- exit(1);
+ die("usage: %s [-v] [[[-h host] [-p port]] | [-U udsocket]] "
+ "[-d dir] [-u user] [-g group]\n", argv0);
}
int
Received on Sun Sep 04 2016 - 23:58:57 CEST
This archive was generated by hypermail 2.3.0
: Mon Sep 05 2016 - 00:00:35 CEST