Bläddra i källkod

ims_icscf: fix compiler warnings

> In file included from registration.h:49:0,
>                  from mod.h:68,
>                  from cxdx_lir.c:51:
> scscf_list.h:141:13: warning: inline function 'i_unlock' declared but never defined
>  inline void i_unlock(unsigned int hash);
>              ^~~~~~~~
> scscf_list.h:140:13: warning: inline function 'i_lock' declared but never defined
>  inline void i_lock(unsigned int hash);
>              ^~~~~~
> scscf_list.h:139:21: warning: inline function 'get_call_id_hash' declared but never defined
>  inline unsigned int get_call_id_hash(str callid,int hash_size);
>                      ^~~~~~~~~~~~~~~~
Victor Seva 8 år sedan
förälder
incheckning
59bab1e0df
2 ändrade filer med 6 tillägg och 6 borttagningar
  1. 3 3
      src/modules/ims_icscf/scscf_list.c
  2. 3 3
      src/modules/ims_icscf/scscf_list.h

+ 3 - 3
src/modules/ims_icscf/scscf_list.c

@@ -285,7 +285,7 @@ int add_scscf_list(str call_id, scscf_entry *sl) {
 /**
  * Computes the hash for a string.
  */
-inline unsigned int get_call_id_hash(str callid, int hash_size) {
+unsigned int get_call_id_hash(str callid, int hash_size) {
 #define h_inc h+=v^(v>>3)
     char* p;
     register unsigned v;
@@ -334,7 +334,7 @@ error:
 /**
  * Locks the required part of hash with S-CSCF lists
  */
-inline void i_lock(unsigned int hash) {
+void i_lock(unsigned int hash) {
 
     lock_get(i_hash_table[(hash)].lock);
 
@@ -343,7 +343,7 @@ inline void i_lock(unsigned int hash) {
 /**
  * UnLocks the required part of hash with S-CSCF lists
  */
-inline void i_unlock(unsigned int hash) {
+void i_unlock(unsigned int hash) {
     lock_release(i_hash_table[(hash)].lock);
 
 }

+ 3 - 3
src/modules/ims_icscf/scscf_list.h

@@ -136,9 +136,9 @@ int I_get_capabilities();
 int I_get_capab_match(scscf_capabilities *c,int *m,int mcnt,int *o,int ocnt);
 int add_scscf_list(str call_id,scscf_entry *sl);
 scscf_list* new_scscf_list(str call_id,scscf_entry *sl);
-inline unsigned int get_call_id_hash(str callid,int hash_size);
-inline void i_lock(unsigned int hash);
-inline void i_unlock(unsigned int hash);
+unsigned int get_call_id_hash(str callid,int hash_size);
+void i_lock(unsigned int hash);
+void i_unlock(unsigned int hash);
 int I_scscf_select(struct sip_msg* msg, char* str1, char* str2);
 
 /**