X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fplugins%2Fradius%2Fradiusclient%2Flib%2Fstrcasecmp.c;fp=pppd%2Fplugins%2Fradius%2Fradiusclient%2Flib%2Fstrcasecmp.c;h=f94dde616064b8eaac11730b1b941ce61e5f3485;hp=190da22818844b9423ddb701d537ff0295997e1b;hb=79624399f8eb3d29ddca1b2cf919ef2362e33eb2;hpb=c0b0a40bc5d0c880a94e13af2ec980643e36639c;ds=sidebyside diff --git a/pppd/plugins/radius/radiusclient/lib/strcasecmp.c b/pppd/plugins/radius/radiusclient/lib/strcasecmp.c index 190da22..f94dde6 100644 --- a/pppd/plugins/radius/radiusclient/lib/strcasecmp.c +++ b/pppd/plugins/radius/radiusclient/lib/strcasecmp.c @@ -1,11 +1,11 @@ /* - * $Id: strcasecmp.c,v 1.1 2002/01/22 16:03:02 dfs Exp $ + * $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. + * 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. * */ @@ -26,11 +26,11 @@ int strcasecmp(char *s1, char *s2) { while (*s1 && *s2 && toupper(*s1) == toupper(*s2)) - s1++, s2++; - + s1++, s2++; + if (!*s1 && !*s2) - return 0; + return 0; else - return (toupper(*s1) - toupper(*s2)); + return (toupper(*s1) - toupper(*s2)); } #endif