]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
hts_strtab: make all functions inline
authorJaroslav Kysela <perex@perex.cz>
Wed, 21 Mar 2018 18:40:08 +0000 (19:40 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 21 Mar 2018 18:40:31 +0000 (19:40 +0100)
src/hts_strtab.h

index 143c9234c2e8ac90027feff2d0c57803f817259b..16f0aa8f42bba42c117c0202a2dfa3f6e61ba5f1 100644 (file)
@@ -42,7 +42,7 @@ struct strtab_str {
 static int str2val0(const char *str, const struct strtab tab[], int l)
      __attribute((unused));
 
-static int
+static inline int
 str2val0(const char *str, const struct strtab tab[], int l)
 {
   int i;
@@ -60,7 +60,7 @@ str2val0(const char *str, const struct strtab tab[], int l)
 static int str2val0_def(const char *str, struct strtab tab[], int l, int def)
      __attribute((unused));
 
-static int
+static inline int
 str2val0_def(const char *str, struct strtab tab[], int l, int def)
 {
   int i;
@@ -78,7 +78,7 @@ str2val0_def(const char *str, struct strtab tab[], int l, int def)
 static const char * val2str0(int val, const struct strtab tab[], int l)
      __attribute__((unused));
 
-static const char *
+static inline const char *
 val2str0(int val, const struct strtab tab[], int l)
 {
   int i;