| 1228 | |
| 1229 | |
| 1230 | static int fixup_set_id(void ** param) |
| 1231 | { |
| 1232 | struct rtpe_set* rtpe_list; |
| 1233 | rtpe_set_link_t *rtpl = NULL; |
| 1234 | |
| 1235 | rtpl = (rtpe_set_link_t*)pkg_malloc(sizeof(rtpe_set_link_t)); |
| 1236 | if(rtpl==NULL) { |
| 1237 | LM_ERR("no more pkg memory\n"); |
| 1238 | return -1; |
| 1239 | } |
| 1240 | memset(rtpl, 0, sizeof(rtpe_set_link_t)); |
| 1241 | |
| 1242 | if((rtpe_list = select_rtpe_set(*(int*)*param)) ==0){ |
| 1243 | rtpl->type = RTPE_SET_NONE; |
| 1244 | rtpl->v.id = *(int*)*param; |
| 1245 | } else { |
| 1246 | rtpl->type = RTPE_SET_FIXED; |
| 1247 | rtpl->v.rset = rtpe_list; |
| 1248 | } |
| 1249 | |
| 1250 | *param = (void*)rtpl; |
| 1251 | return 0; |
| 1252 | } |
| 1253 | |
| 1254 | static int fixup_free_set_id(void **param) |
| 1255 | { |
nothing calls this directly
no test coverage detected