فهرست منبع

ims_icscf: getting rid of "defined but not used" compiler warning

Ovidiu Sas 12 سال پیش
والد
کامیت
47276cf597
2فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 0
      modules/ims_icscf/nds.c
  2. 0 2
      modules/ims_icscf/nds.h

+ 3 - 0
modules/ims_icscf/nds.c

@@ -65,6 +65,9 @@
 extern sl_api_t slb;
 
 
+static str str_msg_403 = {MSG_403, 9};
+static str str_msg_500 = {MSG_500, 46};
+
 /** Defines the untrusted headers */
 str untrusted_headers[]={
 	{"P-Asserted-Identity",19},

+ 0 - 2
modules/ims_icscf/nds.h

@@ -62,8 +62,6 @@
 #define MSG_403 "Forbidden" 
 #define MSG_500 "I-CSCF Error while stripping untrusted headers"
 
-static str str_msg_403 = {MSG_403, 9};
-static str str_msg_500 = {MSG_500, 46};
 
 int I_NDS_check_trusted(struct sip_msg* msg, char* str1, char* str2);