aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-08-15 18:42:17 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-08-15 18:42:17 +0000
commitaa21e42d5b1b9bb001c346df3cf0c2467fd40186 (patch)
tree9ab4e2c0f3b4ec6365ec17231dba7ca2b0d2611c
parent16215e80d22c8675e92406e94b1b140b1e10cf8c (diff)
const fixes
-rw-r--r--lib/ftp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 5fe639aa7..2fdf7d578 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -792,7 +792,7 @@ CURLcode _ftp(struct connectdata *conn)
int alen, plen;
char portmsgbuf[4096], tmp[4096];
- char *mode[] = { "EPRT", "LPRT", "PORT", NULL };
+ const char *mode[] = { "EPRT", "LPRT", "PORT", NULL };
char **modep;
/*
@@ -850,7 +850,7 @@ CURLcode _ftp(struct connectdata *conn)
return CURLE_FTP_PORT_FAILED;
}
- for (modep = mode; modep && *modep; modep++) {
+ for (modep = (char *)mode; modep && *modep; modep++) {
int lprtaf, eprtaf;
switch (sa->sa_family) {
@@ -937,8 +937,7 @@ CURLcode _ftp(struct connectdata *conn)
failf(data, "Server does not grok %s", *modep);
continue;
} else
- break;
-again:;
+ break;
}
if (!*modep) {