diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-10-23 09:18:38 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-10-23 09:18:38 +0000 |
commit | 812aa80dfabad325041ec728e457640000b77a4d (patch) | |
tree | 6af80b45dd12a3f07e4cc38ac69b60fabf1dd680 /src | |
parent | fd982a990d9e3a5d6adcc1b37a618cbf66f4ce56 (diff) | |
download | mdevd-812aa80dfabad325041ec728e457640000b77a4d.tar.xz |
Inline more functions
Diffstat (limited to 'src')
-rw-r--r-- | src/mdevd/mdevd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mdevd/mdevd.c b/src/mdevd/mdevd.c index 403c94d..7fafea0 100644 --- a/src/mdevd/mdevd.c +++ b/src/mdevd/mdevd.c @@ -133,7 +133,7 @@ static inline void script_free (scriptelem *script, unsigned short scriptlen, st for (i = 0 ; i < envmatchlen ; i++) regfree(&envmatch[i].re) ; } -static void mdevd_random_init (void) +static inline void mdevd_random_init (void) { char seed[160] ; random_makeseed(seed) ; @@ -514,7 +514,7 @@ static inline unsigned char format_cclass (char c) return (unsigned char)c < 58 ? classtable[(unsigned char)c] - '0' : 3 ; } -static ssize_t alias_format (char *out, size_t outmax, char const *in, char const *data, regmatch_t const *off) +static inline ssize_t alias_format (char *out, size_t outmax, char const *in, char const *data, regmatch_t const *off) { static unsigned char const table[2][4] = { { 0x12, 0x01, 0x10, 0x10 }, { 0x03, 0x10, 0x20, 0x03 } } ; size_t w = 0 ; |