]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Remove some inline keywords, let the compiler work it out better.
authorRoy Marples <roy@marples.name>
Thu, 18 Sep 2014 15:12:45 +0000 (15:12 +0000)
committerRoy Marples <roy@marples.name>
Thu, 18 Sep 2014 15:12:45 +0000 (15:12 +0000)
compat/arc4random.c
compat/endian.h
dhcpcd.c

index 70a459a3f9b3c1b9603e47e7e4b1cd05136e473e..963dd1f716f7943e43c34b4b0fae2cfdeeba7ef2 100644 (file)
@@ -54,7 +54,7 @@ static struct arc4_stream rs = { .i = 0xff, .j = 0, .s = { S256 },
 #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 @@ arc4_addrandom(struct arc4_stream *as, unsigned char *dat, int datlen)
        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 @@ arc4_getbyte(struct arc4_stream *as)
        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 @@ arc4_stir(struct arc4_stream *as)
        as->count = 1600000;
 }
 
-static inline void
+static void
 arc4_stir_if_needed(struct arc4_stream *as)
 {
        pid_t pid;
index 3a997a57270dac31882c9b2cebcd8ba62175d6a3..35354fbe4809ad42abdc8732f5d63137ef421a0f 100644 (file)
@@ -30,7 +30,7 @@
 
 #include <stdint.h>
 
-static inline void
+static void
 be32enc(uint8_t *buf, uint32_t u)
 {
 
@@ -40,7 +40,7 @@ be32enc(uint8_t *buf, uint32_t u)
        buf[3] = (uint8_t)(u & 0xff);
 }
 
-static inline void
+static void
 be64enc(uint8_t *buf, uint64_t u)
 {
 
@@ -48,21 +48,21 @@ be64enc(uint8_t *buf, uint64_t u)
        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)
 {
 
index 3a1864b137b1ab4be626b04603445d7db95c7916..0e46591b8f237bfefa031777f6053acaec0d4de3 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -99,7 +99,7 @@ read_pid(const char *pidfile)
        return pid;
 }
 
-static inline int
+static int
 write_pid(int fd, pid_t pid)
 {