Преглед изворни кода

tls: removed inline specifier and renamed safe_shm_available()

- became shm_available_safe() to have the shm_ prefix which common for
  shm functions
- declaring inline in c header file and implementing in c source file
  makes clang throw compile warnings
Daniel-Constantin Mierla пре 10 година
родитељ
комит
c4d48f3ae3
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      mem/shm_mem.c
  2. 1 1
      mem/shm_mem.h

+ 1 - 1
mem/shm_mem.c

@@ -254,7 +254,7 @@ void shm_mem_destroy(void)
 #endif
 }
 
-inline unsigned long safe_shm_available()
+unsigned long shm_available_safe()
 {
 	unsigned long ret;
 	shm_lock();

+ 1 - 1
mem/shm_mem.h

@@ -314,7 +314,7 @@ do{\
 
 /* multi-process safe version of shm_available()
  */
-inline unsigned long safe_shm_available();
+unsigned long shm_available_safe();
 
 
 #endif /* shm_mem_h */