diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-11-01 15:11:25 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-11-01 15:11:25 +0100 |
commit | 86df5dbefec807234e9a458da00acbbd2e0e6649 (patch) | |
tree | 361b618a4f387b798a63193ecf1c86755ff901c6 /src | |
parent | 42e44a0b5c85b890810e398f86b7ec3a06a02d12 (diff) | |
download | fastd-86df5dbefec807234e9a458da00acbbd2e0e6649.tar fastd-86df5dbefec807234e9a458da00acbbd2e0e6649.zip |
Move unistd.h include to fastd.h
Diffstat (limited to 'src')
-rw-r--r-- | src/crypto_linux.c | 1 | ||||
-rw-r--r-- | src/fastd.c | 1 | ||||
-rw-r--r-- | src/fastd.h | 1 | ||||
-rw-r--r-- | src/method_aes128_gcm.c | 2 | ||||
-rw-r--r-- | src/peer.c | 1 | ||||
-rw-r--r-- | src/random.c | 1 | ||||
-rw-r--r-- | src/resolve.c | 1 |
7 files changed, 1 insertions, 7 deletions
diff --git a/src/crypto_linux.c b/src/crypto_linux.c index 902170b..e3f3dd9 100644 --- a/src/crypto_linux.c +++ b/src/crypto_linux.c @@ -29,7 +29,6 @@ #include <alloca.h> #include <linux/if_alg.h> -#include <unistd.h> #ifndef SOL_ALG diff --git a/src/fastd.c b/src/fastd.c index b93ee75..a673ea9 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -42,7 +42,6 @@ #include <sys/ioctl.h> #include <sys/resource.h> #include <sys/socket.h> -#include <unistd.h> static volatile bool sighup = false; diff --git a/src/fastd.h b/src/fastd.h index 9f84ae7..e4f7924 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -44,6 +44,7 @@ #include <sys/uio.h> #include <sys/socket.h> #include <time.h> +#include <unistd.h> #define FASTD_VERSION "0.5" diff --git a/src/method_aes128_gcm.c b/src/method_aes128_gcm.c index 68b9030..f21904e 100644 --- a/src/method_aes128_gcm.c +++ b/src/method_aes128_gcm.c @@ -27,8 +27,6 @@ #include "fastd.h" #include "crypto.h" -#include <unistd.h> - #define KEYBYTES 16 #define NONCEBYTES 7 @@ -30,7 +30,6 @@ #include "task.h" #include <arpa/inet.h> -#include <unistd.h> static void on_establish(fastd_context *ctx, fastd_peer *peer) { diff --git a/src/random.c b/src/random.c index f3f0dd5..f859d07 100644 --- a/src/random.c +++ b/src/random.c @@ -28,7 +28,6 @@ #include <fcntl.h> #include <sys/stat.h> -#include <unistd.h> void fastd_random_bytes(fastd_context *ctx, void *buffer, size_t len, bool secure) { diff --git a/src/resolve.c b/src/resolve.c index 8faffe2..a0a9312 100644 --- a/src/resolve.c +++ b/src/resolve.c @@ -31,7 +31,6 @@ #include <netdb.h> #include <pthread.h> -#include <unistd.h> typedef struct _resolv_arg { |