[BusyBox] change in tftp.c

Michael Renzmann mrenzmann at web.de
Mon Feb 18 12:43:03 UTC 2002


Hi.

Robert Parusel wrote:

>     363 #ifdef BB_FEATURE_TFTP_GET2STDOUT
>     364     if ( localfile == NULL && cmd == tftp_cmd_get ) {
>     365         fd = 1;
>     366     } else {


Just one suggestion: I remember that Ansi C does not recommend stdout 
being file descriptor #1. There should be a function that allows getting 
the correct file handle for stdout, but I don't know exactly its name 
(my Kernighan/Ritchie is in the office, I'm at home :) ).

Bye, Mike





More information about the busybox mailing list