diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-07-03 12:32:10 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-07-03 12:32:10 -0700 |
commit | 749693d9057c88747cabe4c640f7d72031f5cf4b (patch) | |
tree | bc0732297fbc2273e8e9fbc253c528b02900a3e3 /pcap-dlpi.c | |
parent | 9de94c9efc3868b93353ae9577f9569516c9a23b (diff) | |
download | libpcap-749693d9057c88747cabe4c640f7d72031f5cf4b.tar.gz |
Fix some errors on HP-UX.
Diffstat (limited to 'pcap-dlpi.c')
-rw-r--r-- | pcap-dlpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-dlpi.c b/pcap-dlpi.c index 075d0cb3..eaa888fe 100644 --- a/pcap-dlpi.c +++ b/pcap-dlpi.c @@ -387,9 +387,9 @@ open_dlpi_device(const char *name, int *ppa, char *errbuf) * table for the specified device type name and unit number. */ *ppa = get_dlpi_ppa(fd, dname, *ppa, errbuf); - if (ppa < 0) { + if (*ppa < 0) { close(fd); - return (ppa); + return (*ppa); } #else /* |