]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-dlpi.c
Fix some errors on HP-UX.
[libpcap] / pcap-dlpi.c
index 075d0cb3786455194d71fd0164250bb65c0d83dd..eaa888fe407254aa7c1ffe812824ee48c7566f83 100644 (file)
@@ -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
        /*