summaryrefslogtreecommitdiffstats
path: root/ax25ipd/config.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2017-07-26 00:11:56 +0200
committerRalf Baechle <ralf@linux-mips.org>2017-07-26 00:16:07 +0200
commit02450385adc79578ac67c8ebb6d4417df69377b1 (patch)
treed425df9f5865f66423b3491433ffca4e307973d2 /ax25ipd/config.c
parent11fff636f92341a2f73b3fd3868c7f95da625df9 (diff)
ax25ipd: Cleanup header file inclusion.
We were including way too many system header files, some even multiple times and it wasn't immediately visible. Clean this. This also drops the definitions of __USE_XOPEN which never had the desired effect with glibc. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'ax25ipd/config.c')
-rw-r--r--ax25ipd/config.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/ax25ipd/config.c b/ax25ipd/config.c
index e1a7f70..e0db591 100644
--- a/ax25ipd/config.c
+++ b/ax25ipd/config.c
@@ -12,17 +12,23 @@
*/
#include <stdio.h>
-#include <sys/types.h>
-#include <netdb.h>
+#include <stdlib.h>
+#include <limits.h>
#include <memory.h>
+#include <netdb.h>
#include <fcntl.h>
#include <string.h>
#include <ctype.h>
+#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
+#include <arpa/inet.h>
#include <syslog.h>
+
#include "ax25ipd.h"
+#include "../pathnames.h"
+
/* Initialize the config table */
void config_init(void)
{