dect
/
libpcap
Archived
13
0
Fork 0

dlp->dl_length might be an unsigned long; cast it to unsigned long and

print it with %lu, so the code works regardless of whether it's an
unsigned int or an unsigned long.
This commit is contained in:
Guy Harris 2009-07-02 12:28:51 -07:00
parent fb62fdb902
commit dcf1642930
1 changed files with 2 additions and 2 deletions

View File

@ -1491,8 +1491,8 @@ get_dlpi_ppa(register int fd, register const char *device, register int unit,
}
if (ctl.len < dlp->dl_length) {
snprintf(ebuf, PCAP_ERRBUF_SIZE,
"get_dlpi_ppa: hpppa ack too small (%d < %d)",
ctl.len, dlp->dl_length);
"get_dlpi_ppa: hpppa ack too small (%d < %lu)",
ctl.len, (unsigned long)dlp->dl_length);
free(ppa_data_buf);
return (PCAP_ERROR);
}