Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
make deltaU32() as inline fcn
  • Loading branch information
perexg committed Aug 18, 2014
1 parent 17f7c15 commit dbd5b24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/tvheadend.h
Expand Up @@ -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)
Expand Down
5 changes: 0 additions & 5 deletions src/utils.c
Expand Up @@ -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);
}

0 comments on commit dbd5b24

Please sign in to comment.