From d7c390a6796aa14e035fbb14813c8ef60513eee9 Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Wed, 3 Jan 2024 11:46:32 +0100 Subject: [PATCH] misc: fix deprecated ARRAY_SIZE --- modules/auloop/auloop.c | 2 +- modules/autotest/autotest.c | 2 +- modules/b2bua/b2bua.c | 2 +- modules/intercom/iccustom.c | 2 +- modules/intercom/ichidden.c | 2 +- modules/intercom/intercom.c | 2 +- modules/parcall/parcall.c | 2 +- modules/vidloop/vidloop.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/auloop/auloop.c b/modules/auloop/auloop.c index e2b34b7..a23f7c4 100644 --- a/modules/auloop/auloop.c +++ b/modules/auloop/auloop.c @@ -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)); } diff --git a/modules/autotest/autotest.c b/modules/autotest/autotest.c index 6ad1892..82fe229 100644 --- a/modules/autotest/autotest.c +++ b/modules/autotest/autotest.c @@ -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; } diff --git a/modules/b2bua/b2bua.c b/modules/b2bua/b2bua.c index 3b87e13..e9d5cab 100644 --- a/modules/b2bua/b2bua.c +++ b/modules/b2bua/b2bua.c @@ -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; diff --git a/modules/intercom/iccustom.c b/modules/intercom/iccustom.c index 5ef7de4..9f3cb77 100644 --- a/modules/intercom/iccustom.c +++ b/modules/intercom/iccustom.c @@ -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)); } diff --git a/modules/intercom/ichidden.c b/modules/intercom/ichidden.c index 0231919..25062f3 100644 --- a/modules/intercom/ichidden.c +++ b/modules/intercom/ichidden.c @@ -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)); } diff --git a/modules/intercom/intercom.c b/modules/intercom/intercom.c index ec5ad0f..c50cb7e 100644 --- a/modules/intercom/intercom.c +++ b/modules/intercom/intercom.c @@ -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; diff --git a/modules/parcall/parcall.c b/modules/parcall/parcall.c index cacbeec..02d52bb 100644 --- a/modules/parcall/parcall.c +++ b/modules/parcall/parcall.c @@ -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; diff --git a/modules/vidloop/vidloop.c b/modules/vidloop/vidloop.c index 2670944..8e5d821 100644 --- a/modules/vidloop/vidloop.c +++ b/modules/vidloop/vidloop.c @@ -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)); }