[sr-dev] git:master:c4d48f3a: tls: removed inline specifier and renamed safe_shm_available()
Daniel-Constantin Mierla
miconda at gmail.com
Wed Apr 15 11:25:44 CEST 2015
Module: kamailio
Branch: master
Commit: c4d48f3ae363fb6f6a7d789a0f32b28eb60c2404
URL: https://github.com/kamailio/kamailio/commit/c4d48f3ae363fb6f6a7d789a0f32b28eb60c2404
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-04-15T11:22:36+02:00
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
---
Modified: mem/shm_mem.c
Modified: mem/shm_mem.h
---
Diff: https://github.com/kamailio/kamailio/commit/c4d48f3ae363fb6f6a7d789a0f32b28eb60c2404.diff
Patch: https://github.com/kamailio/kamailio/commit/c4d48f3ae363fb6f6a7d789a0f32b28eb60c2404.patch
---
diff --git a/mem/shm_mem.c b/mem/shm_mem.c
index 5b6a0cf..c85cac0 100644
--- a/mem/shm_mem.c
+++ b/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();
diff --git a/mem/shm_mem.h b/mem/shm_mem.h
index 97032d4..2f75b23 100644
--- a/mem/shm_mem.h
+++ b/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 */
More information about the sr-dev
mailing list