summaryrefslogtreecommitdiff
path: root/libftpconn
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2015-12-29 22:45:01 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-12-29 23:01:50 +0100
commit17668a5c621e54bc0b68dc6638590a587b52bb91 (patch)
tree44814773e9f8313b74b88e1926978c2338bb8a40 /libftpconn
parent42d04ae6ab017b65c6721dd4e9823c34b3656229 (diff)
fix compiler warnings in hurd/libftpconn
Diffstat (limited to 'libftpconn')
-rw-r--r--libftpconn/cmd.c3
-rw-r--r--libftpconn/reply.c4
2 files changed, 3 insertions, 4 deletions
diff --git a/libftpconn/cmd.c b/libftpconn/cmd.c
index 803dda7c..9916d03b 100644
--- a/libftpconn/cmd.c
+++ b/libftpconn/cmd.c
@@ -156,9 +156,8 @@ ftp_conn_abort (struct ftp_conn *conn)
&& write (conn->control, abor, sizeof abor) == sizeof abor)
{
int reply;
- error_t err;
do
- err = ftp_conn_get_raw_reply (conn, &reply, 0);
+ ftp_conn_get_raw_reply (conn, &reply, 0);
while (reply == REPLY_ABORTED);
if (reply != REPLY_TRANS_OK && reply != REPLY_ABORT_OK)
ftp_conn_close (conn);
diff --git a/libftpconn/reply.c b/libftpconn/reply.c
index d39cdb02..a3eb4cf3 100644
--- a/libftpconn/reply.c
+++ b/libftpconn/reply.c
@@ -151,8 +151,8 @@ ftp_conn_get_raw_reply (struct ftp_conn *conn, int *reply,
do
{
- const char *l;
- size_t len;
+ const char *l = NULL;
+ size_t len = 0;
error_t err = ftp_conn_getline (conn, &l, &len);
if (err)