X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fplugins%2Fradius%2Fradiusclient%2Flib%2Fstrcasecmp.c;fp=pppd%2Fplugins%2Fradius%2Fradiusclient%2Flib%2Fstrcasecmp.c;h=0000000000000000000000000000000000000000;hb=4abe4296f0eddbb2b6ff11dbbd27100156c85f87;hp=f94dde616064b8eaac11730b1b941ce61e5f3485;hpb=4b9bf9ae2701487191810e564aaa4672eb95130e;p=ppp.git diff --git a/pppd/plugins/radius/radiusclient/lib/strcasecmp.c b/pppd/plugins/radius/radiusclient/lib/strcasecmp.c deleted file mode 100644 index f94dde6..0000000 --- a/pppd/plugins/radius/radiusclient/lib/strcasecmp.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - * $Id: strcasecmp.c,v 1.2 2002/02/27 15:51:20 dfs Exp $ - * - * Copyright (C) 1996 Lars Fenneberg and Christian Graefe - * - * This file is provided under the terms and conditions of the GNU general - * public license, version 2 or any later version, incorporated herein by - * reference. - * - */ - -#include "config.h" -#include "includes.h" - -#ifdef HAVE_STRICMP -# define strcasecmp(a,b) stricmp(a,b) -#else - -/* - * Function: strcasecmp - * - * Purpose: strcasecmp replacement for systems which lack strcasecmp and - * stricmp - */ - -int strcasecmp(char *s1, char *s2) -{ - while (*s1 && *s2 && toupper(*s1) == toupper(*s2)) - s1++, s2++; - - if (!*s1 && !*s2) - return 0; - else - return (toupper(*s1) - toupper(*s2)); -} -#endif