diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-07-23 11:19:00 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-07-23 11:19:00 +0000 |
commit | f1775381f91f1250b20f1949dfd0364ddb0ee9fc (patch) | |
tree | 1326bd7f4dfd8c57f89c4d6b2f13d4f22f578abf /utils | |
parent | d35b0bc119816825a657f7c9c2a1f062e7048c39 (diff) |
- fix inline keyword
Diffstat (limited to 'utils')
-rw-r--r-- | utils/bswap.h | 4 | ||||
-rw-r--r-- | utils/ldd.c | 8 | ||||
-rw-r--r-- | utils/readelf.c | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/utils/bswap.h b/utils/bswap.h index 183fce5c2..666b80a73 100644 --- a/utils/bswap.h +++ b/utils/bswap.h @@ -44,12 +44,12 @@ # include <byteswap.h> #else -static inline uint16_t bswap_16(uint16_t x) +static __inline__ uint16_t bswap_16(uint16_t x) { return ((((x) & 0xff00) >> 8) | \ (((x) & 0x00ff) << 8)); } -static inline uint32_t bswap_32(uint32_t x) +static __inline__ uint32_t bswap_32(uint32_t x) { return ((((x) & 0xff000000) >> 24) | \ (((x) & 0x00ff0000) >> 8) | \ diff --git a/utils/ldd.c b/utils/ldd.c index a00bc3ba4..4a05d32d9 100644 --- a/utils/ldd.c +++ b/utils/ldd.c @@ -158,7 +158,7 @@ char *interp_dir = NULL; static int byteswap; static int interpreter_already_found = 0; -static inline uint32_t byteswap32_to_host(uint32_t value) +static __inline__ uint32_t byteswap32_to_host(uint32_t value) { if (byteswap == 1) { return (bswap_32(value)); @@ -166,7 +166,7 @@ static inline uint32_t byteswap32_to_host(uint32_t value) return (value); } } -static inline uint64_t byteswap64_to_host(uint64_t value) +static __inline__ uint64_t byteswap64_to_host(uint64_t value) { if (byteswap == 1) { return (bswap_64(value)); @@ -348,10 +348,10 @@ int unmap_cache(void) return 0; } #else -static inline void map_cache(void) +static __inline__ void map_cache(void) { } -static inline void unmap_cache(void) +static __inline__ void unmap_cache(void) { } #endif diff --git a/utils/readelf.c b/utils/readelf.c index 188f92f9f..2af4b5ca9 100644 --- a/utils/readelf.c +++ b/utils/readelf.c @@ -28,7 +28,7 @@ /* makefile will include elf.h for us */ static int byteswap; -static inline uint32_t byteswap32_to_host(uint32_t value) +static __inline__ uint32_t byteswap32_to_host(uint32_t value) { if (byteswap==1) { return(bswap_32(value)); @@ -36,7 +36,7 @@ static inline uint32_t byteswap32_to_host(uint32_t value) return(value); } } -static inline uint64_t byteswap64_to_host(uint64_t value) +static __inline__ uint64_t byteswap64_to_host(uint64_t value) { if (byteswap==1) { return(bswap_64(value)); |