summaryrefslogtreecommitdiff
path: root/src/librandom
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-03-13 22:43:45 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-03-13 22:43:45 +0000
commit33dfbbeaec4a49e110f51f5d088015f1a8fb9075 (patch)
tree7f2e2359d05b63b1b0b59b61ae3fc154050fc486 /src/librandom
parente450f6efc39e55e32264d2daded6c757af0f7527 (diff)
downloadskalibs-33dfbbeaec4a49e110f51f5d088015f1a8fb9075.tar.xz
More superflous headers cleanup and tiny fixes
Diffstat (limited to 'src/librandom')
-rw-r--r--src/librandom/random_name.c3
-rw-r--r--src/librandom/random_sauniquename.c3
-rw-r--r--src/librandom/random_string.c1
-rw-r--r--src/librandom/random_uint32.c1
-rw-r--r--src/librandom/surf.c2
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>