summaryrefslogtreecommitdiff
path: root/libc/stdlib/arc4random.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-07-23 11:19:00 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-07-23 11:19:00 +0000
commitf1775381f91f1250b20f1949dfd0364ddb0ee9fc (patch)
tree1326bd7f4dfd8c57f89c4d6b2f13d4f22f578abf /libc/stdlib/arc4random.c
parentd35b0bc119816825a657f7c9c2a1f062e7048c39 (diff)
- fix inline keyword
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;
{