aboutsummaryrefslogtreecommitdiff
path: root/pcap-linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcap-linux.c')
-rw-r--r--pcap-linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-linux.c b/pcap-linux.c
index f7c456ff..aa7a330a 100644
--- a/pcap-linux.c
+++ b/pcap-linux.c
@@ -6978,8 +6978,8 @@ static int iface_dsa_get_proto_info(const char *device, pcap_t *handle,
buf[r] = '\0';
for (i = 0; i < sizeof(dsa_protos) / sizeof(dsa_protos[0]); i++) {
- if (strlen(dsa_protos[i].name) == r &&
- !strcmp(buf, dsa_protos[i].name)) {
+ if (strlen(dsa_protos[i].name) == (size_t)r &&
+ strcmp(buf, dsa_protos[i].name) == 0) {
handle->linktype = dsa_protos[i].linktype;
switch (dsa_protos[i].linktype) {
case DLT_EN10MB: