summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-06-05 17:35:24 +0000
committerRob Landley <rob@landley.net>2006-06-05 17:35:24 +0000
commit362dc2bf3314b3e01d0445acbabaebedb3a94131 (patch)
tree7f8847740d40d26316019a033879e1cfcad708d5 /networking
parent12d87550a3b7b85d2c03e45261e059855db04d1b (diff)
downloadbusybox-w32-362dc2bf3314b3e01d0445acbabaebedb3a94131.tar.gz
busybox-w32-362dc2bf3314b3e01d0445acbabaebedb3a94131.tar.bz2
busybox-w32-362dc2bf3314b3e01d0445acbabaebedb3a94131.zip
Header cleanup on two more networking files (move libbb.h to the top and
remove #includes that libbb.h already does), plus a minor cleanup of libbb.h to move #includes towards the top of the file where we can see 'em.
Diffstat (limited to 'networking')
-rw-r--r--networking/fakeidentd.c10
-rw-r--r--networking/nameif.c4
2 files changed, 4 insertions, 10 deletions
diff --git a/networking/fakeidentd.c b/networking/fakeidentd.c
index d3aa3ce5d..b097d9980 100644
--- a/networking/fakeidentd.c
+++ b/networking/fakeidentd.c
@@ -9,28 +9,22 @@
9 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 9 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
10 */ 10 */
11 11
12#include "busybox.h"
13
12#include <unistd.h> 14#include <unistd.h>
13#include <stdio.h>
14#include <stdlib.h>
15#include <stdarg.h>
16#include <string.h> 15#include <string.h>
17#include <fcntl.h> 16#include <fcntl.h>
18#include <signal.h> 17#include <signal.h>
19#include <sys/syslog.h> 18#include <sys/syslog.h>
20 19
21#include <pwd.h> 20#include <pwd.h>
22#include <netdb.h>
23 21
24#include <sys/syslog.h> 22#include <sys/syslog.h>
25#include <sys/types.h>
26#include <time.h> 23#include <time.h>
27#include <sys/socket.h> 24#include <sys/socket.h>
28#include <netinet/in.h>
29#include <errno.h> 25#include <errno.h>
30#include <arpa/inet.h>
31#include <sys/uio.h> 26#include <sys/uio.h>
32 27
33#include "busybox.h"
34 28
35#define IDENT_PORT 113 29#define IDENT_PORT 113
36#define MAXCONNS 20 30#define MAXCONNS 20
diff --git a/networking/nameif.c b/networking/nameif.c
index 7dc48ec16..3d53d6f15 100644
--- a/networking/nameif.c
+++ b/networking/nameif.c
@@ -8,17 +8,17 @@
8 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 8 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
9 */ 9 */
10 10
11#include "busybox.h"
12
11#include <sys/syslog.h> 13#include <sys/syslog.h>
12#include <sys/socket.h> 14#include <sys/socket.h>
13#include <sys/ioctl.h> 15#include <sys/ioctl.h>
14#include <errno.h> 16#include <errno.h>
15#include <stdlib.h>
16#include <string.h> 17#include <string.h>
17#include <unistd.h> 18#include <unistd.h>
18#include <net/if.h> 19#include <net/if.h>
19#include <netinet/ether.h> 20#include <netinet/ether.h>
20 21
21#include "busybox.h"
22 22
23/* Older versions of net/if.h do not appear to define IF_NAMESIZE. */ 23/* Older versions of net/if.h do not appear to define IF_NAMESIZE. */
24#ifndef IF_NAMESIZE 24#ifndef IF_NAMESIZE