aboutsummaryrefslogtreecommitdiff
path: root/libbb/inet_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/inet_common.c')
-rw-r--r--libbb/inet_common.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/libbb/inet_common.c b/libbb/inet_common.c
index feb0c42f3..75a03fda4 100644
--- a/libbb/inet_common.c
+++ b/libbb/inet_common.c
@@ -11,16 +11,6 @@
11 11
12#include "libbb.h" 12#include "libbb.h"
13#include "inet_common.h" 13#include "inet_common.h"
14#include <stdio.h>
15#include <errno.h>
16#include <stdlib.h>
17#include <string.h>
18#include <unistd.h>
19
20#ifdef DEBUG
21# include <resolv.h>
22#endif
23
24 14
25const char bb_INET_default[] = "default"; 15const char bb_INET_default[] = "default";
26 16
@@ -174,7 +164,7 @@ int INET_rresolve(char *name, size_t len, struct sockaddr_in *s_in,
174 pn->addr = *s_in; 164 pn->addr = *s_in;
175 pn->next = INET_nn; 165 pn->next = INET_nn;
176 pn->host = host; 166 pn->host = host;
177 pn->name = bb_xstrdup(name); 167 pn->name = xstrdup(name);
178 INET_nn = pn; 168 INET_nn = pn;
179 169
180 return (0); 170 return (0);