xatonum.h: add comment
[oweals/busybox.git] / networking / tftp.c
index ac3a86afb6590e975dfccbba7fb41bf06fe3ded3..a2683971a87e6c88f9f6ef5f179b0841347efb2f 100644 (file)
@@ -225,7 +225,7 @@ static int tftp( USE_GETPUT(const int cmd,)
                /* Receive packet */
                /*pfd[0].fd = socketfd;*/
                pfd[0].events = POLLIN;
-               switch (poll(pfd, 1, waittime_ms)) {
+               switch (safe_poll(pfd, 1, waittime_ms)) {
                        unsigned from_port;
                case 1:
                        from->len = peer_lsa->len;
@@ -262,7 +262,7 @@ static int tftp( USE_GETPUT(const int cmd,)
 
                        goto send_again; /* resend last sent pkt */
                default:
-                       bb_perror_msg("poll");
+                       /*bb_perror_msg("poll"); - done in safe_poll */
                        goto ret;
                }
  process_pkt:
@@ -391,7 +391,7 @@ static int tftp( USE_GETPUT(const int cmd,)
        return finished == 0; /* returns 1 on failure */
 }
 
-int tftp_main(int argc, char **argv);
+int tftp_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
 int tftp_main(int argc, char **argv)
 {
        len_and_sockaddr *peer_lsa;