summaryrefslogtreecommitdiff
path: root/libc/stdlib/arc4random.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib/arc4random.c')
-rw-r--r--libc/stdlib/arc4random.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libc/stdlib/arc4random.c b/libc/stdlib/arc4random.c
index 836b79f6c..bf6a4cd30 100644
--- a/libc/stdlib/arc4random.c
+++ b/libc/stdlib/arc4random.c
@@ -52,13 +52,13 @@ struct arc4_stream {
static int rs_initialized;
static struct arc4_stream rs;
-static inline void arc4_init(struct arc4_stream *);
-static inline void arc4_addrandom(struct arc4_stream *, u_char *, int);
+static __inline__ void arc4_init(struct arc4_stream *);
+static __inline__ void arc4_addrandom(struct arc4_stream *, u_char *, int);
static void arc4_stir(struct arc4_stream *);
-static inline uint8_t arc4_getbyte(struct arc4_stream *);
-static inline uint32_t arc4_getword(struct arc4_stream *);
+static __inline__ uint8_t arc4_getbyte(struct arc4_stream *);
+static __inline__ uint32_t arc4_getword(struct arc4_stream *);
-static inline void
+static __inline__ void
arc4_init(as)
struct arc4_stream *as;
{
@@ -70,7 +70,7 @@ arc4_init(as)
as->j = 0;
}
-static inline void
+static __inline__ void
arc4_addrandom(as, dat, datlen)
struct arc4_stream *as;
u_char *dat;
@@ -141,7 +141,7 @@ arc4_stir(as)
arc4_getbyte(as);
}
-static inline uint8_t
+static __inline__ uint8_t
arc4_getbyte(as)
struct arc4_stream *as;
{
@@ -156,7 +156,7 @@ arc4_getbyte(as)
return (as->s[(si + sj) & 0xff]);
}
-static inline uint32_t
+static __inline__ uint32_t
arc4_getword(as)
struct arc4_stream *as;
{