|
@@ -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)
|
|
|
{
|