diff options
author | Christian Hesse <mail@eworm.de> | 2014-10-21 14:16:34 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2014-10-21 14:16:34 +0200 |
commit | 933e8e34e2f328926e207be38a2c6441d9b9953a (patch) | |
tree | cf9442a4dafba0d42dcfff51e29542bbd5fd1e90 | |
parent | bc608737924c3c87d328b26654a16c7adc01bf4d (diff) | |
download | dyndhcpd-933e8e34e2f328926e207be38a2c6441d9b9953a.tar.gz dyndhcpd-933e8e34e2f328926e207be38a2c6441d9b9953a.tar.zst |
introduce dyndhcpd.h
-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: |