Xinqi Bao's Git

Update README
[slstatus.git] / components / kernel_release.c
index 4e67a28..0457301 100644 (file)
@@ -1,8 +1,6 @@
 /* See LICENSE file for copyright and license details. */
-#include <errno.h>
 #include <sys/utsname.h>
 #include <stdio.h>
-#include <string.h>
 
 #include "../util.h"
 
@@ -12,7 +10,7 @@ kernel_release(void)
        struct utsname udata;
 
        if (uname(&udata) < 0) {
-               fprintf(stderr, "uname: %s\n", strerror(errno));
+               warn("uname:");
                return NULL;
        }