From: Dan Fandrich Date: Sat, 24 Mar 2007 17:23:01 +0000 (+0000) Subject: Fixed a couple of compile problems. X-Git-Tag: curl-7_16_2~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bd1d7e996e8c781f14af8d3e7d0ffbd4033d5f1;p=thirdparty%2Fcurl.git Fixed a couple of compile problems. --- diff --git a/lib/ssh.c b/lib/ssh.c index 30cd225089..581606e781 100644 --- a/lib/ssh.c +++ b/lib/ssh.c @@ -364,7 +364,7 @@ CURLcode Curl_ssh_connect(struct connectdata *conn, bool *done) */ if ((data->set.ssh_auth_types & CURLSSH_AUTH_PUBLICKEY) && (strstr(authlist, "publickey") != NULL)) { - const char *home; + char *home; const char *passphrase; char rsa_pub[PATH_MAX]; char rsa[PATH_MAX]; diff --git a/lib/url.c b/lib/url.c index 5a882a3b46..d11ebd3a03 100644 --- a/lib/url.c +++ b/lib/url.c @@ -3430,6 +3430,7 @@ else { /*********************************************************************** * file: is a special case in that it doesn't need a network connection ***********************************************************************/ +#ifndef CURL_DISABLE_FILE if (strequal(conn->protostr, "FILE")) { /* anyway, this is supposed to be the connect function so we better at least check that the file is present here! */ @@ -3447,6 +3448,7 @@ else { return result; } +#endif /************************************************************* * If the protocol is using SSL and HTTP proxy is used, we set