From db2a1d1e5e9d07fbaf16019399b09ec886517f27 Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 27 Jun 2001 05:22:44 +0000 Subject: The "dl_module_id_1" and "dl_module_id_2" members of a "dl_hp_ppa_info_t" are arrays of "u_char" (or "u_int8_t"), presumably to get around the problems of signed characters; this causes complaints from HP's C compiler if we pass them as an argument to "strcmp()", so cast them to "const char *". --- pcap-dlpi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pcap-dlpi.c') diff --git a/pcap-dlpi.c b/pcap-dlpi.c index 7efff2a..b6b2f93 100644 --- a/pcap-dlpi.c +++ b/pcap-dlpi.c @@ -38,7 +38,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.67 2001-05-21 07:33:56 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/pcap-dlpi.c,v 1.68 2001-06-27 05:22:44 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -963,8 +963,8 @@ get_dlpi_ppa(register int fd, register const char *device, register int unit, * instance number. */ for (i = 0; i < ap->dl_count; i++) { - if ((strcmp(ip->dl_module_id_1, device) == 0 || - strcmp(ip->dl_module_id_2, device) == 0) && + if ((strcmp((const char *)ip->dl_module_id_1, device) == 0 || + strcmp((const char *)ip->dl_module_id_2, device) == 0) && ip->dl_instance_num == unit) break; -- cgit v1.2.3