Browse Source

ntk: Fix incorrect inline statements

* That isn't how you use those.
Alexander von Gluck IV 10 years ago
parent
commit
be6e9d3511
5 changed files with 5 additions and 5 deletions
  1. 1
    1
      src/gmap.c
  2. 1
    1
      src/gmap.h
  3. 1
    1
      src/hash.c
  4. 1
    1
      src/hash.h
  5. 1
    1
      src/misc.c

+ 1
- 1
src/gmap.c View File

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

+ 1
- 1
src/gmap.h View File

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

+ 1
- 1
src/hash.c View File

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

+ 1
- 1
src/hash.h View File

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

+ 1
- 1
src/misc.c View File

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

Loading…
Cancel
Save