summaryrefslogtreecommitdiff
path: root/src/librandom
diff options
context:
space:
mode:
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>