Mercurial > hg > dhcpcd
changeset 2686:2e5028befe96 draft
Remove some inline keywords, let the compiler work it out better.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Thu, 18 Sep 2014 15:12:45 +0000 |
| parents | 4636929d11db |
| children | 5da6e32151d9 |
| files | compat/arc4random.c compat/endian.h dhcpcd.c |
| diffstat | 3 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/compat/arc4random.c Thu Sep 18 13:38:46 2014 +0000 +++ b/compat/arc4random.c Thu Sep 18 15:12:45 2014 +0000 @@ -54,7 +54,7 @@ #undef S64 #undef S256 -static inline void +static void arc4_addrandom(struct arc4_stream *as, unsigned char *dat, int datlen) { int n; @@ -71,7 +71,7 @@ as->j = as->i; } -static inline uint8_t +static uint8_t arc4_getbyte(struct arc4_stream *as) { uint8_t si, sj; @@ -85,7 +85,7 @@ return (as->s[(si + sj) & 0xff]); } -static inline uint32_t +static uint32_t arc4_getword(struct arc4_stream *as) { uint32_t val; @@ -129,7 +129,7 @@ as->count = 1600000; } -static inline void +static void arc4_stir_if_needed(struct arc4_stream *as) { pid_t pid;
--- a/compat/endian.h Thu Sep 18 13:38:46 2014 +0000 +++ b/compat/endian.h Thu Sep 18 15:12:45 2014 +0000 @@ -30,7 +30,7 @@ #include <stdint.h> -static inline void +static void be32enc(uint8_t *buf, uint32_t u) { @@ -40,7 +40,7 @@ buf[3] = (uint8_t)(u & 0xff); } -static inline void +static void be64enc(uint8_t *buf, uint64_t u) { @@ -48,21 +48,21 @@ be32enc(buf + sizeof(uint32_t), (uint32_t)(u & 0xffffffffULL)); } -static inline uint16_t +static uint16_t be16dec(const uint8_t *buf) { return (uint16_t)(buf[0] << 8 | buf[1]); } -static inline uint32_t +static uint32_t be32dec(const uint8_t *buf) { return (uint32_t)((uint32_t)be16dec(buf) << 16 | be16dec(buf + 2)); } -static inline uint64_t +static uint64_t be64dec(const uint8_t *buf) {
