浏览代码

Compile warning eliminated.

Jan Janak 21 年之前
父节点
当前提交
639f1ee1c9
共有 1 个文件被更改,包括 0 次插入20 次删除
  1. 0 20
      modules/tm/tm.c

+ 0 - 20
modules/tm/tm.c

@@ -114,7 +114,6 @@ static int fixup_t_send_reply(void** param, int param_no);
 static int fixup_str2int( void** param, int param_no);
 static int fixup_hostport2proxy(void** param, int param_no);
 static int fixup_str2regexp(void** param, int param_no);
-static int fixup_string2str( void** param, int param_no);
 
 
 /* init functions */
@@ -312,25 +311,6 @@ static int fixup_str2int( void** param, int param_no)
 }
 
 
-static int fixup_string2str( void** param, int param_no)
-{
-	str *s;
-
-	if (param_no==1) {
-		s = (str*)pkg_malloc(sizeof(str));
-		if (s==0) {
-			LOG(L_ERR,"ERROR:fixup_string2str: nomore pkg mem\n");
-			return E_OUT_OF_MEM;
-		}
-		s->s = (char*)*param;
-		s->len = strlen( (char*)*param );
-		*param = (void*)s;
-		return 0;
-	}
-	return 0;
-}
-
-
 /* (char *hostname, char *port_nr) ==> (struct proxy_l *, -)  */
 static int fixup_hostport2proxy(void** param, int param_no)
 {