]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
make deltaU32() as inline fcn
authorJaroslav Kysela <perex@perex.cz>
Mon, 18 Aug 2014 18:21:16 +0000 (20:21 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 18 Aug 2014 18:21:16 +0000 (20:21 +0200)
src/tvheadend.h
src/utils.c

index 8597d9c5d2dd7014104331b9e198071bb6dff983..0b557f51f03787a9ec9d58cf470ce2944a135031 100644 (file)
@@ -718,7 +718,8 @@ int makedirs ( const char *path, int mode );
 int rmtree ( const char *path );
 
 char *regexp_escape ( const char *str );
-uint32_t deltaU32(uint32_t a, uint32_t b);
+
+static inline uint32_t deltaU32(uint32_t a, uint32_t b) { return (a > b) ? (a - b) : (b - a); }
   
 #define SKEL_DECLARE(name, type) type *name;
 #define SKEL_ALLOC(name) do { if (!name) name = calloc(1, sizeof(*name)); } while (0)
index 039f4178dcfc14011959ad81288dfa4295bfd0fc..9c252a4bdafd92ea9550d74e4259038bd4219f71 100644 (file)
@@ -585,8 +585,3 @@ regexp_escape(const char* str)
   *b = 0;
   return tmp;
 }
-
-uint32_t deltaU32(uint32_t a, uint32_t b)
-{
-  return (a > b) ? (a - b) : (b - a);
-}