* is provided ``as is'' without express or implied warranty.
*/
-#if defined(LIBC_SCCS) && !defined(lint)
-static const char sccsid[] = "@(#)strcasecmp.c 5.5 (Berkeley) 11/24/87";
-#endif /* LIBC_SCCS and not lint */
-
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
-#include <sys/types.h>
+#include <tcpdump-stdinc.h>
#include "interface.h"
* 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',
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;
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;