ntk: Fix incorrect inline statements

* That isn't how you use those.
This commit is contained in:
Alexander von Gluck IV 2014-09-14 11:44:16 -05:00
parent bc054faf0c
commit be6e9d3511
5 changed files with 5 additions and 5 deletions

View File

@ -31,7 +31,7 @@
*
* It returns how many groups there are in the given level.
*/
inline int get_groups(int max_levels, int lvl)
int get_groups(int max_levels, int lvl)
{
return lvl == max_levels ? 1 : MAXGROUPNODE;
}

View File

@ -204,7 +204,7 @@ struct ext_rnode_cache {
typedef struct ext_rnode_cache ext_rnode_cache;
/* * * Functions' declaration * * */
inline int get_groups(int family, int lvl);
int get_groups(int family, int lvl);
int is_group_invalid(int *gids, int gid, int lvl, int family);
int pos_from_gnode(map_gnode *gnode, map_gnode *map);

View File

@ -98,7 +98,7 @@ u_long fnv_32_buf(void *buf, size_t len, u_long hval)
* first five operations no overflow is possible so we optimized it a
* bit.
*/
inline unsigned int dl_elf_hash (const unsigned char *name)
unsigned int dl_elf_hash (const unsigned char *name)
{
unsigned long int hash = 0;
if (*name != '\0') {

View File

@ -27,7 +27,7 @@
\*/
u_long fnv_32_buf(void *buf, size_t len, u_long hval);
unsigned int inthash(unsigned int key);
inline unsigned int dl_elf_hash (const unsigned char *name);
unsigned int dl_elf_hash (const unsigned char *name);
char xor_int(int i);
int hash_time(int *h_sec, int *h_usec);

View File

@ -98,7 +98,7 @@ void swap_shorts(int nmemb, unsigned short *x, unsigned short *y)
/*
* rand_range: It returns a random number x which is _min <= x <= _max
*/
inline int rand_range(int _min, int _max)
int rand_range(int _min, int _max)
{
return (rand()%(_max - _min + 1)) + _min;
}