projects
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implement $(NATIVE_ARCHITECTURE) substvar for indextargets
[apt.git]
/
methods
/
rfc2553emu.cc
diff --git
a/methods/rfc2553emu.cc
b/methods/rfc2553emu.cc
index 66bc906e9707574c6c646259fc014fde2689bee2..37288276933bf9d112a52a2960ebbc6e336c2c32 100644
(file)
--- a/
methods/rfc2553emu.cc
+++ b/
methods/rfc2553emu.cc
@@
-14,12
+14,14
@@
##################################################################### */
/*}}}*/
##################################################################### */
/*}}}*/
-#include "rfc2553emu.h"
+#include <config.h>
+
#include <stdlib.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <string.h>
#include <stdio.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 /*{{{*/
#ifndef HAVE_GETADDRINFO
// getaddrinfo - Resolve a hostname /*{{{*/
@@
-152,11
+154,9
@@
int getaddrinfo(const char *nodename, const char *servname,
/* */
void freeaddrinfo(struct addrinfo *ai)
{
/* */
void freeaddrinfo(struct addrinfo *ai)
{
- struct addrinfo *Tmp;
while (ai != 0)
{
free(ai->ai_addr);
while (ai != 0)
{
free(ai->ai_addr);
- Tmp = ai;
ai = ai->ai_next;
free(ai);
}
ai = ai->ai_next;
free(ai);
}