diff options
Diffstat (limited to 'slstatus/components/kernel_release.c')
-rw-r--r-- | slstatus/components/kernel_release.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/slstatus/components/kernel_release.c b/slstatus/components/kernel_release.c deleted file mode 100644 index 0457301..0000000 --- a/slstatus/components/kernel_release.c +++ /dev/null @@ -1,18 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -#include <sys/utsname.h> -#include <stdio.h> - -#include "../util.h" - -const char * -kernel_release(void) -{ - struct utsname udata; - - if (uname(&udata) < 0) { - warn("uname:"); - return NULL; - } - - return bprintf("%s", udata.release); -} |