]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-dpdk.c
Use the intended date types for variables passed as or compared to other types.
[libpcap] / pcap-dpdk.c
index 025a67482c0fafcc03638ea9baaf1011a7d84c77..844db652499a1e55d62c792f773cff99d6b57fc0 100644 (file)
@@ -529,8 +529,8 @@ static void eth_addr_str(ETHER_ADDR_TYPE *addrp, char* mac_str, int len)
 static uint16_t portid_by_device(char * device)
 {
        uint16_t ret = DPDK_PORTID_MAX;
-       int len = strlen(device);
-       int prefix_len = strlen(DPDK_PREFIX);
+       size_t len = strlen(device);
+       size_t prefix_len = strlen(DPDK_PREFIX);
        unsigned long ret_ul = 0L;
        char *pEnd;
        if (len<=prefix_len || strncmp(device, DPDK_PREFIX, prefix_len)) // check prefix dpdk: