]> git.saurik.com Git - apt-legacy.git/blobdiff - methods/ftp.cc
Choose a more sane default for MaxParallel.
[apt-legacy.git] / methods / ftp.cc
index 9e1333acf9fcfdec260c06a3b1774d7550c145e3..554a24cf52c52c19a7ca11a23477a61b934d7bc3 100644 (file)
@@ -1,7 +1,3 @@
-extern "C" {
-    #include <mach-o/nlist.h>
-}
-
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
 // $Id: ftp.cc,v 1.31.2.1 2004/01/16 18:58:50 mdz Exp $
@@ -1090,13 +1086,6 @@ bool FtpMethod::Fetch(FetchItem *Itm)
 
 int main(int argc,const char *argv[])
 { 
-   struct nlist nl[2];
-   memset(nl, 0, sizeof(nl));
-   nl[0].n_un.n_name = "_useMDNSResponder";
-   nlist("/usr/lib/libc.dylib", nl);
-   if (nl[0].n_type != N_UNDF)
-       *(int *) nl[0].n_value = 0;
-
    setlocale(LC_ALL, "");
 
    /* See if we should be come the http client - we do this for http
@@ -1112,7 +1101,7 @@ int main(int argc,const char *argv[])
         char S[300];
         snprintf(S,sizeof(S),"http_proxy=%s",getenv("ftp_proxy"));
         putenv(S);
-        putenv("no_proxy=");
+        putenv((char *)"no_proxy=");
         
         // Run the http method
         string Path = flNotFile(argv[0]) + "http";