diff options
-rw-r--r-- | dyndhcpd.c | 18 | ||||
-rw-r--r-- | dyndhcpd.h | 29 |
2 files changed, 30 insertions, 17 deletions
@@ -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: |