diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-03-27 10:02:48 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-03-27 10:02:48 +0000 |
commit | 70060d25d23278f6b636a535edca4a0c4006decd (patch) | |
tree | 372a280d63bab86ec9ffddc76ec28b27a7a1b3ee /networking/ftpgetput.c | |
parent | edd580a088fe67f33036d3732f66f917b1c0a80b (diff) | |
download | busybox-w32-70060d25d23278f6b636a535edca4a0c4006decd.tar.gz busybox-w32-70060d25d23278f6b636a535edca4a0c4006decd.tar.bz2 busybox-w32-70060d25d23278f6b636a535edca4a0c4006decd.zip |
s/fileno\(stdin\)/STDIN_FILENO/g
s/fileno\(stdout\)/STDOUT_FILENO/g
Diffstat (limited to 'networking/ftpgetput.c')
-rw-r--r-- | networking/ftpgetput.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c index a13aaa228..47ffb5d98 100644 --- a/networking/ftpgetput.c +++ b/networking/ftpgetput.c | |||
@@ -154,7 +154,7 @@ static int ftp_recieve(ftp_host_info_t *server, FILE *control_stream, | |||
154 | } | 154 | } |
155 | 155 | ||
156 | if ((local_path[0] == '-') && (local_path[1] == '\0')) { | 156 | if ((local_path[0] == '-') && (local_path[1] == '\0')) { |
157 | fd_local = fileno(stdout); | 157 | fd_local = STDOUT_FILENO; |
158 | do_continue = 0; | 158 | do_continue = 0; |
159 | } | 159 | } |
160 | 160 | ||
@@ -230,7 +230,7 @@ static int ftp_send(ftp_host_info_t *server, FILE *control_stream, | |||
230 | 230 | ||
231 | /* get the local file */ | 231 | /* get the local file */ |
232 | if ((local_path[0] == '-') && (local_path[1] == '\0')) { | 232 | if ((local_path[0] == '-') && (local_path[1] == '\0')) { |
233 | fd_local = fileno(stdin); | 233 | fd_local = STDIN_FILENO; |
234 | } else { | 234 | } else { |
235 | fd_local = bb_xopen(local_path, O_RDONLY); | 235 | fd_local = bb_xopen(local_path, O_RDONLY); |
236 | fstat(fd_local, &sbuf); | 236 | fstat(fd_local, &sbuf); |