aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-dlpi.c
diff options
context:
space:
mode:
authorguy <guy>2001-06-27 05:22:44 +0000
committerguy <guy>2001-06-27 05:22:44 +0000
commitdb2a1d1e5e9d07fbaf16019399b09ec886517f27 (patch)
tree2e0fa630b721f87e7773489e14b1112544857326 /pcap-dlpi.c
parent70836ff6e90625d594eaa5ce8b2f84b77deb067b (diff)
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 *".
Diffstat (limited to 'pcap-dlpi.c')
-rw-r--r--pcap-dlpi.c6
1 files changed, 3 insertions, 3 deletions
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;