diff --git a/src/gmap.c b/src/gmap.c index 8055ec7..e699a37 100644 --- a/src/gmap.c +++ b/src/gmap.c @@ -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; } diff --git a/src/gmap.h b/src/gmap.h index 7bbd7c7..cd78c8c 100644 --- a/src/gmap.h +++ b/src/gmap.h @@ -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); diff --git a/src/hash.c b/src/hash.c index 662391d..cfdb17a 100644 --- a/src/hash.c +++ b/src/hash.c @@ -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') { diff --git a/src/hash.h b/src/hash.h index 8b7dab4..57b6cf8 100644 --- a/src/hash.h +++ b/src/hash.h @@ -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); diff --git a/src/misc.c b/src/misc.c index 3de530c..ad7d5d7 100644 --- a/src/misc.c +++ b/src/misc.c @@ -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; }