summaryrefslogtreecommitdiff
path: root/libc/stdlib
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
parentd35b0bc119816825a657f7c9c2a1f062e7048c39 (diff)
- fix inline keyword
Diffstat (limited to 'libc/stdlib')
-rw-r--r--libc/stdlib/arc4random.c16
-rw-r--r--libc/stdlib/malloc/heap.h10
2 files changed, 13 insertions, 13 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;
{
diff --git a/libc/stdlib/malloc/heap.h b/libc/stdlib/malloc/heap.h
index 38ec41cbf..6505cd223 100644
--- a/libc/stdlib/malloc/heap.h
+++ b/libc/stdlib/malloc/heap.h
@@ -141,7 +141,7 @@ extern void __heap_check (struct heap *heap, const char *str);
/* Delete the free-area FA from HEAP. */
-static inline void
+static __inline__ void
__heap_delete (struct heap *heap, struct heap_free_area *fa)
{
if (fa->next)
@@ -156,7 +156,7 @@ __heap_delete (struct heap *heap, struct heap_free_area *fa)
/* Link the free-area FA between the existing free-area's PREV and NEXT in
HEAP. PREV and NEXT may be 0; if PREV is 0, FA is installed as the
first free-area. */
-static inline void
+static __inline__ void
__heap_link_free_area (struct heap *heap, struct heap_free_area *fa,
struct heap_free_area *prev,
struct heap_free_area *next)
@@ -175,7 +175,7 @@ __heap_link_free_area (struct heap *heap, struct heap_free_area *fa,
/* Update the mutual links between the free-areas PREV and FA in HEAP.
PREV may be 0, in which case FA is installed as the first free-area (but
FA may not be 0). */
-static inline void
+static __inline__ void
__heap_link_free_area_after (struct heap *heap,
struct heap_free_area *fa,
struct heap_free_area *prev)
@@ -191,7 +191,7 @@ __heap_link_free_area_after (struct heap *heap,
free-area's PREV and NEXT in HEAP, and return a pointer to its header.
PREV and NEXT may be 0; if PREV is 0, MEM is installed as the first
free-area. */
-static inline struct heap_free_area *
+static __inline__ struct heap_free_area *
__heap_add_free_area (struct heap *heap, void *mem, size_t size,
struct heap_free_area *prev,
struct heap_free_area *next)
@@ -209,7 +209,7 @@ __heap_add_free_area (struct heap *heap, void *mem, size_t size,
/* Allocate SIZE bytes from the front of the free-area FA in HEAP, and
return the amount actually allocated (which may be more than SIZE). */
-static inline size_t
+static __inline__ size_t
__heap_free_area_alloc (struct heap *heap,
struct heap_free_area *fa, size_t size)
{