]> The Tcpdump Group git mirrors - tcpdump/blobdiff - tcpdump.c
More getting rid of old u_intN_t.
[tcpdump] / tcpdump.c
index 3d2ef4e9068fa5e0fb76caf1bf8b55e3c5f7f920..2bc879244098f60a2bac549b23f07d525447261b 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -1460,7 +1460,7 @@ main(int argc, char **argv)
                free(cmdbuf);
                exit(0);
        }
-       init_addrtoname(localnet, netmask);
+       init_addrtoname(gndo, localnet, netmask);
         init_checksum();
 
 #ifndef WIN32
@@ -1996,10 +1996,10 @@ print_packet(u_char *user, const struct pcap_pkthdr *h, const u_char *sp)
        ++packets_captured;
 
        ++infodelay;
-       ts_print(&h->ts);
 
        print_info = (struct print_info *)user;
         ndo = print_info->ndo;
+       ts_print(ndo, &h->ts);
 
        /*
         * Some printers want to check that they're not walking off the