X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/3824a6c0417a551961d1a1bf4f94f10eff736afc..a9a7c86c7875a38358a9ff1f2a35e93febf6f41e:/strcasecmp.c diff --git a/strcasecmp.c b/strcasecmp.c index 7fb721ec..5504e0af 100644 --- a/strcasecmp.c +++ b/strcasecmp.c @@ -14,21 +14,21 @@ #include "config.h" #endif +#ifndef lint +static const char rcsid[] _U_ = + "@(#) $Header: /tcpdump/master/tcpdump/strcasecmp.c,v 1.6 2003-11-16 09:36:43 guy Exp $"; +#endif #include #include "interface.h" -#ifndef lint -static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/strcasecmp.c,v 1.5 2003-11-15 00:39:45 guy Exp $"; -#endif /* * This array is designed for mapping upper and lower case letter * together for a case independent comparison. The mappings are * based upon ascii character sequences. */ -static u_char charmap[] = { +static const u_char charmap[] = { '\000', '\001', '\002', '\003', '\004', '\005', '\006', '\007', '\010', '\011', '\012', '\013', '\014', '\015', '\016', '\017', '\020', '\021', '\022', '\023', '\024', '\025', '\026', '\027', @@ -67,7 +67,7 @@ int strcasecmp(s1, s2) const char *s1, *s2; { - register u_char *cm = charmap, + register const u_char *cm = charmap, *us1 = (u_char *)s1, *us2 = (u_char *)s2; @@ -82,7 +82,7 @@ strncasecmp(s1, s2, n) const char *s1, *s2; register int n; { - register u_char *cm = charmap, + register const u_char *cm = charmap, *us1 = (u_char *)s1, *us2 = (u_char *)s2;