mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-27 14:03:43 +03:00
[PATCH] get rid of functions in klibc_fixups that are now in klibc
This commit is contained in:
parent
02cbdf5eb9
commit
fee6f4150d
@ -7,29 +7,4 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include "klibc_fixups.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
|
||||||
|
@ -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 {
|
struct group {
|
||||||
char *gr_name; /* group name */
|
char *gr_name; /* group name */
|
||||||
char *gr_passwd; /* group password */
|
char *gr_passwd; /* group password */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user