From fee6f4150d0d5fbfc1ba74130bac1ae21ce69c81 Mon Sep 17 00:00:00 2001 From: "greg@kroah.com" Date: Mon, 24 Nov 2003 21:59:03 -0800 Subject: [PATCH] [PATCH] get rid of functions in klibc_fixups that are now in klibc --- klibc_fixups.c | 25 ------------------------- klibc_fixups.h | 4 ---- 2 files changed, 29 deletions(-) diff --git a/klibc_fixups.c b/klibc_fixups.c index c12c90fd..a9916681 100644 --- a/klibc_fixups.c +++ b/klibc_fixups.c @@ -7,29 +7,4 @@ #include #include "klibc_fixups.h" -char *strerror(int errnum) -{ - return "some error"; -} - -int strcasecmp(const char *s1, const char *s2) -{ - char *n1; - char *n2; - int retval; - int i; - - n1 = strdup(s1); - n2 = strdup(s2); - - for (i = 0; i < strlen(n1); ++i) - n1[i] = toupper(n1[i]); - for (i = 0; i < strlen(n2); ++i) - n2[i] = toupper(n2[i]); - retval = strcmp(n1, n2); - free(n1); - free(n2); - return retval; -} - #endif diff --git a/klibc_fixups.h b/klibc_fixups.h index 21a23e77..a89638ea 100644 --- a/klibc_fixups.h +++ b/klibc_fixups.h @@ -4,10 +4,6 @@ #define KLIBC_FIXUPS_H -extern char *strerror(int errnum); - -extern int strcasecmp(const char *s1, const char *s2); - struct group { char *gr_name; /* group name */ char *gr_passwd; /* group password */ -- 2.39.5