diff options
author | Roland McGrath <roland@gnu.org> | 1998-10-20 08:38:41 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1998-10-20 08:38:41 +0000 |
commit | fc40a731d23f893be2cb7699d7e078568d4c210c (patch) | |
tree | 9f1c90570e03a7c4082bee3fca2ced1755ac98a0 /libftpconn/rmt.c | |
parent | 6b0d5d23a26adea266903f285f7424a2f93863cb (diff) | |
download | hurd-fc40a731d23f893be2cb7699d7e078568d4c210c.tar.gz hurd-fc40a731d23f893be2cb7699d7e078568d4c210c.tar.bz2 hurd-fc40a731d23f893be2cb7699d7e078568d4c210c.zip |
Add braces to silence gcc warnings.
Diffstat (limited to 'libftpconn/rmt.c')
-rw-r--r-- | libftpconn/rmt.c | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/libftpconn/rmt.c b/libftpconn/rmt.c index 33fdeaf7..7ada5774 100644 --- a/libftpconn/rmt.c +++ b/libftpconn/rmt.c @@ -1,6 +1,6 @@ /* Remote (server-to-server) transfer - Copyright (C) 1997 Free Software Foundation, Inc. + Copyright (C) 1997, 1998 Free Software Foundation, Inc. Written by Miles Bader <miles@gnu.ai.mit.edu> @@ -50,21 +50,23 @@ ftp_conn_rmt_transfer (struct ftp_conn *src_conn, err = ftp_conn_cmd (dst_conn, "stor", dst_name, &reply, &txt); if (! err) - if (REPLY_IS_PRELIM (reply)) - { - err = ftp_conn_get_reply (src_conn, &reply, &txt); - if (!err && !REPLY_IS_PRELIM (reply)) - err = unexpected_reply (src_conn, reply, txt, src_poss_errs); - - if (err) - ftp_conn_abort (dst_conn); - else - err = ftp_conn_finish_transfer (dst_conn); - } - else - err = unexpected_reply (dst_conn, reply, txt, - ftp_conn_poss_file_errs); - + { + if (REPLY_IS_PRELIM (reply)) + { + err = ftp_conn_get_reply (src_conn, &reply, &txt); + if (!err && !REPLY_IS_PRELIM (reply)) + err = unexpected_reply (src_conn, reply, txt, + src_poss_errs); + + if (err) + ftp_conn_abort (dst_conn); + else + err = ftp_conn_finish_transfer (dst_conn); + } + else + err = unexpected_reply (dst_conn, reply, txt, + ftp_conn_poss_file_errs); + } if (err) /* Ftp servers seem to hang trying to abort at this point, so just close the connection entirely. */ |