Skip to content

Commit

Permalink
bevent: enum constant CNT_DEPRECATED_WARNINGS
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 committed Aug 7, 2024
1 parent cb4e47b commit 2e59253
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

enum {
EVENT_MAXSZ = 4096,
CNT_DEPRECATED_WARNINGS = 3,
};


Expand Down Expand Up @@ -579,7 +580,7 @@ int event_add_au_jb_stat(struct odict *od_parent, const struct call *call)
int uag_event_register(ua_event_h *h, void *arg)
{
struct ua_eh *eh;
static int w = 3;
static int w = CNT_DEPRECATED_WARNINGS;

if (!h)
return EINVAL;
Expand Down Expand Up @@ -711,7 +712,7 @@ void ua_event(struct ua *ua, enum ua_event ev, struct call *call,
{
char buf[256];
va_list ap;
static int w = 3;
static int w = CNT_DEPRECATED_WARNINGS;

va_start(ap, fmt);
(void)re_vsnprintf(buf, sizeof(buf), fmt, ap);
Expand Down

0 comments on commit 2e59253

Please sign in to comment.