Skip to content

Commit

Permalink
bevent: move odict_pl_add() to re
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 committed Nov 6, 2024
1 parent 7a85fa6 commit f31facc
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/bevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,20 +482,6 @@ int event_encode_dict(struct odict *od, struct ua *ua, enum ua_event ev,
}


static int odict_pl_add(struct odict *od, const char *key,
const struct pl *val)
{
char *str;
int err = pl_strdup(&str, val);
if (err)
return err;

err = odict_entry_add(od, key, ODICT_STRING, str);
mem_deref(str);
return err;
}


int odict_encode_bevent(struct odict *od, struct bevent *event)
{
struct ua *ua = bevent_get_ua(event);
Expand Down

0 comments on commit f31facc

Please sign in to comment.