diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2014-04-14 20:42:10 +0300 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2014-04-14 20:42:10 +0300 |
commit | 77f2c264e77d9aa86f35f722062f2af35609b98c (patch) | |
tree | 1616488419ff002de2d7c3dad6d569d0b05bb901 /client | |
parent | 5dda1e46e91801c48716c4c7256e38208172c0bc (diff) | |
download | bemenu-77f2c264e77d9aa86f35f722062f2af35609b98c.tar.gz bemenu-77f2c264e77d9aa86f35f722062f2af35609b98c.tar.bz2 bemenu-77f2c264e77d9aa86f35f722062f2af35609b98c.zip |
Make version function exit itself.
Diffstat (limited to 'client')
-rw-r--r-- | client/client.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/client/client.c b/client/client.c index f46b223..1857e61 100644 --- a/client/client.c +++ b/client/client.c @@ -25,11 +25,11 @@ static struct { 0 /* monitor */ }; -static void printVersion(const char *name) +static void version(const char *name) { char *base = strrchr(name, '/'); printf("%s v%s\n", (base ? base + 1 : name), bmVersion()); - puts("<o/ \e[5mDISCO\e[m"); + exit(EXIT_SUCCESS); } static void usage(FILE *out, const char *name) @@ -97,8 +97,7 @@ static void parseArgs(int *argc, char **argv[]) usage(stdout, *argv[0]); break; case 'v': - printVersion(*argv[0]); - exit(EXIT_SUCCESS); + version(*argv[0]); break; case 'i': |