MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / fixup_cache_dump_ret

Function fixup_cache_dump_ret

modules/sql_cacher/sql_cacher.c:2229–2253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2227 return 0;
2228}
2229static int fixup_cache_dump_ret(void **param)
2230{
2231 int i;
2232 pvname_list_t *avp_list, *avp;
2233 str s = *(str *)*param;
2234
2235 avp_list = parse_pvname_list(&s, PVT_AVP);
2236 if (!avp_list) {
2237 LM_ERR("failed to parse AVP list: %s\n", s.s);
2238 return E_UNSPEC;
2239 }
2240
2241 for (i = 0, avp = avp_list; avp; i++, avp = avp->next)
2242 ;
2243
2244 if (i != ncols) {
2245 LM_ERR("number of columns (%d) differs from number of AVPs (%d)\n",
2246 ncols, i);
2247 return E_UNSPEC;
2248 }
2249
2250 ncols = 0;
2251 *param = (void *)avp_list;
2252 return 0;
2253}
2254
2255static int fixup_cache_dump_ret_free(void **param)
2256{

Callers

nothing calls this directly

Calls 1

parse_pvname_listFunction · 0.85

Tested by

no test coverage detected