Xinqi Bao's Git
projects
/
slstatus.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
ram: Use POSIX types
[slstatus.git]
/
components
/
kernel_release.c
diff --git
a/components/kernel_release.c
b/components/kernel_release.c
index
4e67a28
..
0457301
100644
(file)
--- a/
components/kernel_release.c
+++ b/
components/kernel_release.c
@@
-1,8
+1,6
@@
/* See LICENSE file for copyright and license details. */
/* See LICENSE file for copyright and license details. */
-#include <errno.h>
#include <sys/utsname.h>
#include <stdio.h>
#include <sys/utsname.h>
#include <stdio.h>
-#include <string.h>
#include "../util.h"
#include "../util.h"
@@
-12,7
+10,7
@@
kernel_release(void)
struct utsname udata;
if (uname(&udata) < 0) {
struct utsname udata;
if (uname(&udata) < 0) {
-
fprintf(stderr, "uname: %s\n", strerror(errno)
);
+
warn("uname:"
);
return NULL;
}
return NULL;
}