Skip to content

Commit

Permalink
tls: removed inline specifier and renamed safe_shm_available()
Browse files Browse the repository at this point in the history
- 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

(cherry picked from commit c4d48f3)
  • Loading branch information
miconda committed May 12, 2015
1 parent e463d83 commit f9a0c9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mem/shm_mem.c
Expand Up @@ -266,7 +266,7 @@ void shm_mem_destroy(void)
#endif
}

inline unsigned long safe_shm_available()
unsigned long shm_available_safe()
{
unsigned long ret;
shm_lock();
Expand Down
2 changes: 1 addition & 1 deletion mem/shm_mem.h
Expand Up @@ -324,7 +324,7 @@ do{\

/* multi-process safe version of shm_available()
*/
inline unsigned long safe_shm_available();
unsigned long shm_available_safe();


#endif /* shm_mem_h */
Expand Down

0 comments on commit f9a0c9b

Please sign in to comment.