chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
02cbdf5
)
[PATCH] get rid of functions in klibc_fixups that are now in klibc
author
greg@kroah.com
<greg@kroah.com>
Tue, 25 Nov 2003 05:59:03 +0000
(21:59 -0800)
committer
Greg KH
<gregkh@suse.de>
Wed, 27 Apr 2005 04:13:02 +0000
(21:13 -0700)
klibc_fixups.c
patch
|
blob
|
history
klibc_fixups.h
patch
|
blob
|
history
diff --git
a/klibc_fixups.c
b/klibc_fixups.c
index c12c90fd1cc7469d87ed419493d015066bf3869a..a99166811c82d1cb5e9c5a79575ba26f8bd20162 100644
(file)
--- a/
klibc_fixups.c
+++ b/
klibc_fixups.c
@@
-7,29
+7,4
@@
#include <sys/types.h>
#include "klibc_fixups.h"
#include <sys/types.h>
#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
#endif
diff --git
a/klibc_fixups.h
b/klibc_fixups.h
index 21a23e776237701b1b065ac585ab38ea8d67635e..a89638ead4b428e27eac67b3d463882e37b28e89 100644
(file)
--- a/
klibc_fixups.h
+++ b/
klibc_fixups.h
@@
-4,10
+4,6
@@
#define KLIBC_FIXUPS_H
#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 */
struct group {
char *gr_name; /* group name */
char *gr_passwd; /* group password */