Remove already available strcasecmp function
This commit is contained in:
parent
f72a68acd9
commit
dbf40dbc53
19
timeoutd.c
19
timeoutd.c
|
@ -151,25 +151,6 @@ char path[255]; /*seppy */
|
|||
FILE *proc_file; /*seppy */
|
||||
char comm[16]; /*seppy; to save the command of a pid */
|
||||
|
||||
#ifdef NEED_STRCASECMP
|
||||
int strcasecmp(char *s1, char *s2)
|
||||
{
|
||||
while (*s1 && *s2) {
|
||||
if (tolower(*s1) < tolower(*s2))
|
||||
return -1;
|
||||
else if (tolower(*s1) > tolower(*s2))
|
||||
return 1;
|
||||
s1++;
|
||||
s2++;
|
||||
}
|
||||
if (*s1)
|
||||
return -1;
|
||||
if (*s2)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
int main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
|
|
Loading…
Reference in a new issue