1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 20:29:03 +00:00

Fixed a format specifier warning (expected "long unsigned int").

This commit is contained in:
batrick
2009-08-29 01:14:33 +00:00
parent c7fccb4d0c
commit 9044a42c6b

View File

@@ -5037,7 +5037,7 @@ static void begin_sniffer(UltraScanInfo *USI, vector<Target *> &Targets) {
len = Snprintf(macstring, sizeof(macstring), "%02X%02X%02X%02X%02X%02X",
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
if (len != sizeof(macstring) - 1)
fatal("macstring length is %d, should be %u", len, sizeof(macstring) - 1);
fatal("macstring length is %d, should be %u", len, (unsigned)(sizeof(macstring) - 1));
/* First four bytes of MAC. */
pcap_filter = "arp and arp[18:4] = 0x";
pcap_filter.append(macstring, 0, 4 * 2);