summaryrefslogtreecommitdiffstats
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
commit03c746cdb082d0786ce4b29daf1c59d7cf1f2b2e (patch)
treea2095e1e0a584365330de9e107cdf953af4cc068
parentc2a52ce2545a9f6411346a4ed596ed0174942405 (diff)
downloaddrakx-03c746cdb082d0786ce4b29daf1c59d7cf1f2b2e.tar
drakx-03c746cdb082d0786ce4b29daf1c59d7cf1f2b2e.tar.gz
drakx-03c746cdb082d0786ce4b29daf1c59d7cf1f2b2e.tar.bz2
drakx-03c746cdb082d0786ce4b29daf1c59d7cf1f2b2e.tar.xz
drakx-03c746cdb082d0786ce4b29daf1c59d7cf1f2b2e.zip
(kernel_version) kill it, no more used and broken since the switch to kernel-3.x anyway
-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__)