From dbf40dbc538f02bd1e03eb6e31570fd647dacc82 Mon Sep 17 00:00:00 2001 From: Petar Kapris Date: Thu, 17 Dec 2020 23:41:02 +0100 Subject: [PATCH] Remove already available strcasecmp function --- timeoutd.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/timeoutd.c b/timeoutd.c index 90a23d4..d5d9b17 100644 --- a/timeoutd.c +++ b/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[];