浏览代码

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);