Xinqi Bao's Git

Set {r,t}xbytes 0 before incrementing them on OBSD
[slstatus.git] / components / kernel_release.c
index f539b6a..531014c 100644 (file)
@@ -1,6 +1,8 @@
 /* See LICENSE file for copyright and license details. */
+#include <errno.h>
 #include <sys/utsname.h>
 #include <stdio.h>
+#include <string.h>
 
 #include "../util.h"
 
@@ -10,6 +12,7 @@ kernel_release(void)
        struct utsname udata;
 
        if (uname(&udata) < 0) {
+               warn("uname:");
                return NULL;
        }