diff options
Diffstat (limited to 'mdk-stage1')
-rw-r--r-- | mdk-stage1/utils.c | 10 | ||||
-rw-r--r-- | mdk-stage1/utils.h | 1 |
2 files changed, 0 insertions, 11 deletions
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__) |