1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

const fixes

This commit is contained in:
Daniel Stenberg 2001-08-15 18:42:17 +00:00
parent 16215e80d2
commit aa21e42d5b

View File

@ -792,7 +792,7 @@ CURLcode _ftp(struct connectdata *conn)
int alen, plen; int alen, plen;
char portmsgbuf[4096], tmp[4096]; char portmsgbuf[4096], tmp[4096];
char *mode[] = { "EPRT", "LPRT", "PORT", NULL }; const char *mode[] = { "EPRT", "LPRT", "PORT", NULL };
char **modep; char **modep;
/* /*
@ -850,7 +850,7 @@ CURLcode _ftp(struct connectdata *conn)
return CURLE_FTP_PORT_FAILED; return CURLE_FTP_PORT_FAILED;
} }
for (modep = mode; modep && *modep; modep++) { for (modep = (char *)mode; modep && *modep; modep++) {
int lprtaf, eprtaf; int lprtaf, eprtaf;
switch (sa->sa_family) { switch (sa->sa_family) {
@ -937,8 +937,7 @@ CURLcode _ftp(struct connectdata *conn)
failf(data, "Server does not grok %s", *modep); failf(data, "Server does not grok %s", *modep);
continue; continue;
} else } else
break; break;
again:;
} }
if (!*modep) { if (!*modep) {