summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-01-03 19:39:12 +0000
committerThierry Vignaud <tv@mageia.org>2012-01-03 19:39:12 +0000
commitb98585ec80e33b3972575ed67c3bfcfd45793c47 (patch)
treea2095e1e0a584365330de9e107cdf953af4cc068 /mdk-stage1
parent44f9b51946e044195658df15047fa37bdf881b9f (diff)
downloaddrakx-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.c10
-rw-r--r--mdk-stage1/utils.h1
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__)