diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-01-03 19:39:12 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-01-03 19:39:12 +0000 |
commit | b98585ec80e33b3972575ed67c3bfcfd45793c47 (patch) | |
tree | a2095e1e0a584365330de9e107cdf953af4cc068 /mdk-stage1 | |
parent | 44f9b51946e044195658df15047fa37bdf881b9f (diff) | |
download | drakx-backup-do-not-use-b98585ec80e33b3972575ed67c3bfcfd45793c47.tar drakx-backup-do-not-use-b98585ec80e33b3972575ed67c3bfcfd45793c47.tar.gz drakx-backup-do-not-use-b98585ec80e33b3972575ed67c3bfcfd45793c47.tar.bz2 drakx-backup-do-not-use-b98585ec80e33b3972575ed67c3bfcfd45793c47.tar.xz drakx-backup-do-not-use-b98585ec80e33b3972575ed67c3bfcfd45793c47.zip |
(kernel_version) kill it, no more used and broken since the switch to kernel-3.x anyway
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__) |