]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
'false' and 'true' are not built-ins on most compilers.
authorGisle Vanem <gvanem@broadpark.no>
Thu, 3 Jan 2008 15:18:27 +0000 (15:18 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Thu, 3 Jan 2008 15:18:27 +0000 (15:18 +0000)
Use TRUE/FALSE from setup_once.h.

lib/ftp.c
lib/url.c

index 588cd5bce080107f757b9b833b230e741bd14c07..ea22cabe63d072ea0e4b9366c85aa66f24f14dd8 100644 (file)
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -1888,11 +1888,11 @@ static CURLcode ftp_state_pasv_resp(struct connectdata *conn,
     break;
   case CURLPROXY_SOCKS4:
     result = Curl_SOCKS4(conn->proxyuser, newhost, newport,
-                         SECONDARYSOCKET, conn, false);
+                         SECONDARYSOCKET, conn, FALSE);
     break;
   case CURLPROXY_SOCKS4A:
     result = Curl_SOCKS4(conn->proxyuser, newhost, newport,
-                         SECONDARYSOCKET, conn, true);
+                         SECONDARYSOCKET, conn, TRUE);
     break;
   default:
     failf(data, "unknown proxytype option given");
index a205f9a7b2770ff22c5a79e7180ec6ead9b640b4..550cb21136f93a3d18586ed843c54da6d5b4bc3a 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -2644,11 +2644,11 @@ static CURLcode ConnectPlease(struct SessionHandle *data,
         break;
       case CURLPROXY_SOCKS4:
         result = Curl_SOCKS4(conn->proxyuser, conn->host.name,
-                             conn->remote_port, FIRSTSOCKET, conn, false);
+                             conn->remote_port, FIRSTSOCKET, conn, FALSE);
         break;
       case CURLPROXY_SOCKS4A:
         result = Curl_SOCKS4(conn->proxyuser, conn->host.name,
-                             conn->remote_port, FIRSTSOCKET, conn, true);
+                             conn->remote_port, FIRSTSOCKET, conn, TRUE);
         break;
       default:
         failf(data, "unknown proxytype option given");