summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-10-21 14:16:34 +0200
committerGravatar Christian Hesse <mail@eworm.de>2014-10-21 14:16:34 +0200
commit933e8e34e2f328926e207be38a2c6441d9b9953a (patch)
treecf9442a4dafba0d42dcfff51e29542bbd5fd1e90
parentbc608737924c3c87d328b26654a16c7adc01bf4d (diff)
downloaddyndhcpd-933e8e34e2f328926e207be38a2c6441d9b9953a.tar.gz
dyndhcpd-933e8e34e2f328926e207be38a2c6441d9b9953a.tar.zst
introduce dyndhcpd.h
-rw-r--r--dyndhcpd.c18
-rw-r--r--dyndhcpd.h29
2 files changed, 30 insertions, 17 deletions
diff --git a/dyndhcpd.c b/dyndhcpd.c
index 16b4941..49831be 100644
--- a/dyndhcpd.c
+++ b/dyndhcpd.c
@@ -3,25 +3,9 @@
*
* This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference.
- *
- * This is an example code skeleton provided by vim-skeleton.
*/
-#define _GNU_SOURCE
-
-#include <arpa/inet.h>
-#include <sys/socket.h>
-#include <net/if.h>
-#include <netdb.h>
-#include <ifaddrs.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <string.h>
-#include <getopt.h>
-
-#include "config.h"
-#include "version.h"
+#include "dyndhcpd.h"
const static char optstring[] = "c:hi:v";
const static struct option options_long[] = {
diff --git a/dyndhcpd.h b/dyndhcpd.h
new file mode 100644
index 0000000..e978243
--- /dev/null
+++ b/dyndhcpd.h
@@ -0,0 +1,29 @@
+/*
+ * (C) 2013-2014 by Christian Hesse <mail@eworm.de>
+ *
+ * This software may be used and distributed according to the terms
+ * of the GNU General Public License, incorporated herein by reference.
+ */
+
+#ifndef _DYNDHCPD_H
+#define _DYNDHCPD_H
+
+#define _GNU_SOURCE
+
+#include <arpa/inet.h>
+#include <sys/socket.h>
+#include <net/if.h>
+#include <netdb.h>
+#include <ifaddrs.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <string.h>
+#include <getopt.h>
+
+#include "config.h"
+#include "version.h"
+
+#endif /* _DYNDHCPD_H */
+
+// vim: set syntax=c: