Переглянути джерело

auth_diameter: init socketfd variable

- remove inline to functions that break the symbol linking
Daniel-Constantin Mierla 7 роки тому
батько
коміт
f3a3706023

+ 1 - 0
src/modules/auth_diameter/auth_diameter.c

@@ -61,6 +61,7 @@ int diameter_is_user_in(struct sip_msg* _msg, char* group, char* _s2);
 char* diameter_client_host = "localhost";
 char* diameter_client_host = "localhost";
 int diameter_client_port = 3000;
 int diameter_client_port = 3000;
 int use_domain = 0;
 int use_domain = 0;
+int sockfd = -1;
 
 
 rd_buf_t *rb;
 rd_buf_t *rb;
 
 

+ 1 - 1
src/modules/auth_diameter/avp.c

@@ -37,7 +37,7 @@
  * All this default values (for flags and data-type) are correct/set by this
  * All this default values (for flags and data-type) are correct/set by this
  * function.
  * function.
  */
  */
-inline void set_avp_fields( AAA_AVPCode code, AAA_AVP *avp)
+void set_avp_fields( AAA_AVPCode code, AAA_AVP *avp)
 {
 {
 	switch (code) {
 	switch (code) {
 		case   1: /*AVP_User_Name*/
 		case   1: /*AVP_User_Name*/