From b98585ec80e33b3972575ed67c3bfcfd45793c47 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 3 Jan 2012 19:39:12 +0000 Subject: (kernel_version) kill it, no more used and broken since the switch to kernel-3.x anyway --- mdk-stage1/utils.c | 10 ---------- mdk-stage1/utils.h | 1 - 2 files changed, 11 deletions(-) (limited to 'mdk-stage1') diff --git a/mdk-stage1/utils.c b/mdk-stage1/utils.c index 1ef3632e3..03f6db668 100644 --- a/mdk-stage1/utils.c +++ b/mdk-stage1/utils.c @@ -144,16 +144,6 @@ int string_array_length(char ** a) return i; } -int kernel_version(void) -{ - struct utsname val; - if (uname(&val)) { - log_perror("uname failed"); - return -1; - } - return charstar_to_int(val.release + 2); -} - char * asprintf_(const char *msg, ...) { int n; diff --git a/mdk-stage1/utils.h b/mdk-stage1/utils.h index ba926066a..e4c8030c0 100644 --- a/mdk-stage1/utils.h +++ b/mdk-stage1/utils.h @@ -26,7 +26,6 @@ void * memdup(void *src, size_t size); void add_to_env(char * name, char * value); char ** list_directory(char * direct); int string_array_length(char ** a); -int kernel_version(void); char * asprintf_(const char *msg, ...); int scall_(int retval, char * msg, char * file, int line); #define scall(retval, msg) scall_(retval, msg, __FILE__, __LINE__) -- cgit v1.2.1