]> git.saurik.com Git - apt.git/blobdiff - methods/rfc2553emu.cc
methods/connect.cc: Only use AI_IDN if defined
[apt.git] / methods / rfc2553emu.cc
index 66bc906e9707574c6c646259fc014fde2689bee2..37288276933bf9d112a52a2960ebbc6e336c2c32 100644 (file)
 
    ##################################################################### */
                                                                        /*}}}*/
-#include "rfc2553emu.h"
+#include <config.h>
+
 #include <stdlib.h>
 #include <arpa/inet.h>
 #include <netinet/in.h>
 #include <string.h>
 #include <stdio.h>
+#include "rfc2553emu.h"
 
 #ifndef HAVE_GETADDRINFO
 // getaddrinfo - Resolve a hostname                                    /*{{{*/
@@ -152,11 +154,9 @@ int getaddrinfo(const char *nodename, const char *servname,
 /* */
 void freeaddrinfo(struct addrinfo *ai)
 {
-   struct addrinfo *Tmp;
    while (ai != 0)
    {
       free(ai->ai_addr);
-      Tmp = ai;
       ai = ai->ai_next;
       free(ai);
    }