Imported Upstream version 4.9.2
[platform/upstream/tcpdump.git] / missing / dlnames.c
index 32072b7..16bfcf7 100644 (file)
  * SUCH DAMAGE.
  */
 
-#ifndef lint
-static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/missing/dlnames.c,v 1.5 2003-11-18 23:09:43 guy Exp $ (LBL)";
-#endif
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
-#include <tcpdump-stdinc.h>
+#include <netdissect-stdinc.h>
 
 #include <pcap.h>
 #include <string.h>
 
 #include "pcap-missing.h"
+#include "ascii_strcasecmp.h"
 
 struct dlt_choice {
        const char *name;
@@ -142,7 +138,7 @@ pcap_datalink_name_to_val(const char *name)
        int i;
 
        for (i = 0; dlt_choices[i].name != NULL; i++) {
-               if (strcasecmp(dlt_choices[i].name + sizeof("DLT_") - 1,
+               if (ascii_strcasecmp(dlt_choices[i].name + sizeof("DLT_") - 1,
                    name) == 0)
                        return (dlt_choices[i].dlt);
        }