Skip to content

Commit

Permalink
misc: fix deprecated ARRAY_SIZE (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers authored Jan 3, 2024
1 parent 62a2ba8 commit abc360b
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion modules/auloop/auloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ static const struct cmd cmdv[] = {

static int module_init(void)
{
return cmd_register(baresip_commands(), cmdv, ARRAY_SIZE(cmdv));
return cmd_register(baresip_commands(), cmdv, RE_ARRAY_SIZE(cmdv));
}


Expand Down
2 changes: 1 addition & 1 deletion modules/autotest/autotest.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ static int module_init(void)
if (err)
return err;

err = cmd_register(baresip_commands(), cmdv, ARRAY_SIZE(cmdv));
err = cmd_register(baresip_commands(), cmdv, RE_ARRAY_SIZE(cmdv));
return err;
}

Expand Down
2 changes: 1 addition & 1 deletion modules/b2bua/b2bua.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ static int module_init(void)
return ENOENT;
}

err = cmd_register(baresip_commands(), cmdv, ARRAY_SIZE(cmdv));
err = cmd_register(baresip_commands(), cmdv, RE_ARRAY_SIZE(cmdv));
if (err)
return err;

Expand Down
2 changes: 1 addition & 1 deletion modules/intercom/iccustom.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ struct pl *iccustom_aufile(const struct pl *val)

int iccustom_init(void)
{
return cmd_register(baresip_commands(), cmdv, ARRAY_SIZE(cmdv));
return cmd_register(baresip_commands(), cmdv, RE_ARRAY_SIZE(cmdv));
}


Expand Down
2 changes: 1 addition & 1 deletion modules/intercom/ichidden.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ void call_hidden_close(struct call *call)

int ichidden_init(void)
{
return cmd_register(baresip_commands(), cmdv, ARRAY_SIZE(cmdv));
return cmd_register(baresip_commands(), cmdv, RE_ARRAY_SIZE(cmdv));
}


Expand Down
2 changes: 1 addition & 1 deletion modules/intercom/intercom.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ static int module_init(void)
if (err)
return err;

err = cmd_register(baresip_commands(), cmdv, ARRAY_SIZE(cmdv));
err = cmd_register(baresip_commands(), cmdv, RE_ARRAY_SIZE(cmdv));
(void)conf_get(conf_cur(), "sip_autoanswer_method", &met);
if (!pl_strcmp(&met, "call-info"))
st.met = ANSM_CALLINFO;
Expand Down
2 changes: 1 addition & 1 deletion modules/parcall/parcall.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ static int module_init(void)
return err;

err = uag_event_register(ua_event_handler, NULL);
err |= cmd_register(baresip_commands(), cmdv, ARRAY_SIZE(cmdv));
err |= cmd_register(baresip_commands(), cmdv, RE_ARRAY_SIZE(cmdv));
if (err)
return err;

Expand Down
2 changes: 1 addition & 1 deletion modules/vidloop/vidloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ static const struct cmd cmdv[] = {

static int module_init(void)
{
return cmd_register(baresip_commands(), cmdv, ARRAY_SIZE(cmdv));
return cmd_register(baresip_commands(), cmdv, RE_ARRAY_SIZE(cmdv));
}


Expand Down

0 comments on commit abc360b

Please sign in to comment.