aboutsummaryrefslogtreecommitdiff
path: root/networking/ftpgetput.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-03-27 10:02:48 +0000
committerEric Andersen <andersen@codepoet.org>2004-03-27 10:02:48 +0000
commit70060d25d23278f6b636a535edca4a0c4006decd (patch)
tree372a280d63bab86ec9ffddc76ec28b27a7a1b3ee /networking/ftpgetput.c
parentedd580a088fe67f33036d3732f66f917b1c0a80b (diff)
downloadbusybox-70060d25d23278f6b636a535edca4a0c4006decd.tar.gz
s/fileno\(stdin\)/STDIN_FILENO/g
s/fileno\(stdout\)/STDOUT_FILENO/g
Diffstat (limited to 'networking/ftpgetput.c')
-rw-r--r--networking/ftpgetput.c4
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,
}
if ((local_path[0] == '-') && (local_path[1] == '\0')) {
- fd_local = fileno(stdout);
+ fd_local = STDOUT_FILENO;
do_continue = 0;
}
@@ -230,7 +230,7 @@ static int ftp_send(ftp_host_info_t *server, FILE *control_stream,
/* get the local file */
if ((local_path[0] == '-') && (local_path[1] == '\0')) {
- fd_local = fileno(stdin);
+ fd_local = STDIN_FILENO;
} else {
fd_local = bb_xopen(local_path, O_RDONLY);
fstat(fd_local, &sbuf);