Skip to content

Commit

Permalink
keepalive: cleanup rpc output (#1476)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Bour committed Mar 27, 2018
1 parent 2af701f commit b8a75c1
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/modules/keepalive/keepalive_rpc.c
Expand Up @@ -63,26 +63,11 @@ static const char *keepalive_rpc_list_doc[2] = {

static void keepalive_rpc_list(rpc_t *rpc, void *ctx)
{
void *foo, *bar, *baz;
void *sub;
ka_dest_t *dest;
char *_ctime;
char *_utime;
char *_dtime;
str text = str_init("foobar");

if(rpc->add(ctx, "Sd", &text, 42) < 0)
LM_ERR("failed creating RPC struct\n");
if(rpc->add(ctx, "Sd", &text, 42) < 0)
LM_ERR("failed creating RPC struct\n");

rpc->add(ctx, "{", &foo);
rpc->struct_add(foo, "Sd", "text", &text, "number", 42);

rpc->add(ctx, "{", &bar);
rpc->struct_add(bar, "[", "list", &baz);
rpc->struct_add(baz, "d", "nn", 17);
rpc->struct_add(baz, "d", "nn", 22);

for(dest = ka_destinations_list->first; dest != NULL; dest = dest->next) {
rpc->add(ctx, "{", &sub);
Expand Down

0 comments on commit b8a75c1

Please sign in to comment.