aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-03-06 04:18:47 +0100
committerDuncaen <mail@duncano.de>2017-03-06 04:18:47 +0100
commit9b83fa671caf8c9825b3d8b5ee900161060445b4 (patch)
treec9dae614d01f93009f668f4ad1f08175a7845d28
parentc23fa13d9c7a5128e0cb5d08f4e10c047c9b546a (diff)
downloadlobase-9b83fa671caf8c9825b3d8b5ee900161060445b4.tar.gz
libopenbsd/random.c: fix int types
-rw-r--r--libopenbsd/random.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libopenbsd/random.c b/libopenbsd/random.c
index b846a2a..e16afc3 100644
--- a/libopenbsd/random.c
+++ b/libopenbsd/random.c
@@ -30,6 +30,7 @@
#include <fcntl.h>
#include <stdio.h>
+#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
@@ -265,7 +266,7 @@ srandom_deterministic(unsigned int x)
* Returns a pointer to the old state.
*/
char *
-initstate(u_int seed, char *arg_state, size_t n)
+initstate(unsigned int seed, char *arg_state, size_t n)
{
char *ostate = (char *)(&state[-1]);