summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/client.c7
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':