diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-13 22:43:45 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-13 22:43:45 +0000 |
commit | 33dfbbeaec4a49e110f51f5d088015f1a8fb9075 (patch) | |
tree | 7f2e2359d05b63b1b0b59b61ae3fc154050fc486 /src/librandom | |
parent | e450f6efc39e55e32264d2daded6c757af0f7527 (diff) | |
download | skalibs-33dfbbeaec4a49e110f51f5d088015f1a8fb9075.tar.xz |
More superflous headers cleanup and tiny fixes
Diffstat (limited to 'src/librandom')
-rw-r--r-- | src/librandom/random_name.c | 3 | ||||
-rw-r--r-- | src/librandom/random_sauniquename.c | 3 | ||||
-rw-r--r-- | src/librandom/random_string.c | 1 | ||||
-rw-r--r-- | src/librandom/random_uint32.c | 1 | ||||
-rw-r--r-- | src/librandom/surf.c | 2 |
5 files changed, 1 insertions, 9 deletions
diff --git a/src/librandom/random_name.c b/src/librandom/random_name.c index 1c8eb04..bba1331 100644 --- a/src/librandom/random_name.c +++ b/src/librandom/random_name.c @@ -1,8 +1,5 @@ /* ISC license. */ -/* MT-unsafe */ - -#include <sys/types.h> #include <skalibs/random.h> void random_name (char *s, size_t n) diff --git a/src/librandom/random_sauniquename.c b/src/librandom/random_sauniquename.c index e63e46c..e44e7ba 100644 --- a/src/librandom/random_sauniquename.c +++ b/src/librandom/random_sauniquename.c @@ -1,8 +1,5 @@ /* ISC license. */ -/* MT-unsafe */ - -#include <sys/types.h> #include <skalibs/stralloc.h> #include <skalibs/skamisc.h> #include <skalibs/random.h> diff --git a/src/librandom/random_string.c b/src/librandom/random_string.c index cd2a0aa..f8cabc3 100644 --- a/src/librandom/random_string.c +++ b/src/librandom/random_string.c @@ -17,7 +17,6 @@ void random_string (char *s, size_t n) #ifdef SKALIBS_HASGETRANDOM #include <skalibs/nonposix.h> -#include <sys/types.h> #include <unistd.h> #include <sys/syscall.h> #include <skalibs/random.h> diff --git a/src/librandom/random_uint32.c b/src/librandom/random_uint32.c index 26c0968..6700879 100644 --- a/src/librandom/random_uint32.c +++ b/src/librandom/random_uint32.c @@ -16,7 +16,6 @@ uint32_t random_uint32 (uint32_t n) #else -#include <stdint.h> #include <skalibs/uint32.h> #include <skalibs/random.h> diff --git a/src/librandom/surf.c b/src/librandom/surf.c index 1b68fc2..d226249 100644 --- a/src/librandom/surf.c +++ b/src/librandom/surf.c @@ -1,7 +1,7 @@ /* ISC license. */ -#include <stdint.h> #include <string.h> +#include <stdint.h> #include <skalibs/uint32.h> #include <skalibs/surf.h> |