xatonum.h: add comment
[oweals/busybox.git] / networking / traceroute.c
index 21921e56d076318a1220bc02ade1fe171767bb02..773fc6a8b6681fce5a562da169e8c9800b14a07a 100644 (file)
@@ -543,7 +543,7 @@ wait_for_reply(int sock, struct sockaddr_in *fromp)
 
        pfd[0].fd = sock;
        pfd[0].events = POLLIN;
-       if (poll(pfd, 1, waittime * 1000) > 0)
+       if (safe_poll(pfd, 1, waittime * 1000) > 0)
                cc = recvfrom(sock, packet, sizeof(packet), 0,
                            (struct sockaddr *)fromp, &fromlen);
        return cc;
@@ -889,7 +889,7 @@ print_delta_ms(unsigned t1p, unsigned t2p)
        printf("  %u.%03u ms", tt/1000, tt%1000);
 }
 
-int traceroute_main(int argc, char **argv);
+int traceroute_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
 int traceroute_main(int argc, char **argv)
 {
        int code, n;
@@ -1322,7 +1322,7 @@ int traceroute_main(int argc, char **argv)
                                printf(" *");
                        (void)fflush(stdout);
                }
-               putchar('\n');
+               bb_putchar('\n');
                if (got_there ||
                    (unreachable > 0 && unreachable >= nprobes - 1))
                        break;