diff options
author | Rob Landley <rob@landley.net> | 2006-08-03 15:41:12 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-08-03 15:41:12 +0000 |
commit | d921b2ecc0d294ad4bf8c7458fc52a60c28727d2 (patch) | |
tree | e4a2769349867c441cf2983d83097bb66701a733 /libbb/inet_common.c | |
parent | 6dce0b6fa79f2d4bb7e9d90e1fbc0f6beb25f855 (diff) | |
download | busybox-w32-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.tar.gz busybox-w32-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.tar.bz2 busybox-w32-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.zip |
Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only
had one user), clean up lots of #includes... General cleanup pass. What I've
been doing for the last couple days.
And it conflicts! I've removed httpd.c from this checkin due to somebody else
touching that file. It builds for me. I have to catch a bus. (Now you know
why I'm looking forward to Mercurial.)
Diffstat (limited to 'libbb/inet_common.c')
-rw-r--r-- | libbb/inet_common.c | 12 |
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 | ||
25 | const char bb_INET_default[] = "default"; | 15 | const 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); |