summaryrefslogtreecommitdiff
path: root/slstatus.c
diff options
context:
space:
mode:
authorAli H. Fardan <raiz@firemail.cc>2016-09-18 22:27:04 +0300
committerAli H. Fardan <raiz@firemail.cc>2016-09-18 22:27:04 +0300
commitf4a383382cdd4a1aba1bb3f731e14ba85e6d0b4a (patch)
tree834c5af1d86d387b0bf3709a8e797ae94472febb /slstatus.c
parentfd36f65cc7bd3c506ec57ac8af0c905187952e52 (diff)
several changes
Diffstat (limited to 'slstatus.c')
-rw-r--r--slstatus.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/slstatus.c b/slstatus.c
index 49b14de..34fd951 100644
--- a/slstatus.c
+++ b/slstatus.c
@@ -1,4 +1,11 @@
-/* See LICENSE file for copyright and license details. */
+/*
+ * Copyright (C) 2016, drkhsh
+ * Copyright (C) 2016, Ali H. Fardan (Raiz) <raiz@firemail.cc>
+ * see LICENSE for copyright details
+ */
+
+#define _GNU_SOURCE
+#define VERSION "2.0"
#include <alsa/asoundlib.h>
#include <err.h>
@@ -88,10 +95,8 @@ smprintf(const char *fmt, ...)
va_end(ap);
ret = malloc(++len);
- if (ret == NULL) {
- warn("Malloc failed.");
- return "n/a";
- }
+ if (ret == NULL)
+ err(1, "malloc");
va_start(ap, fmt);
vsnprintf(ret, len, fmt, ap);
@@ -613,7 +618,7 @@ main(int argc, char *argv[])
oflag = 1;
break;
case 'v':
- printf("%s version %s (c) 2016 slstatus engineers\n", argv0, VERSION);
+ printf("slstatus %s (C) 2016 slstatus engineers\n", VERSION);
return 0;
default:
usage();