Commit 2bd59395 authored by Federico Vaga's avatar Federico Vaga

wrtd:rt: use ARRAY_SIZE to find array dimension

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>


NOTE
This commit has been created by `git subtree` on the Mock Turtle repository
on tag mock-turtle-2.0

This commit will not compile
parent 61d2d5db
......@@ -5,8 +5,6 @@ WRNC = ../../../../
EXTRA_CFLAGS += -I../../include
EXTRA_CFLAGS += -I../common
EXTRA_CFLAGS += -D__MAX_ACTION_RECV=1
EXTRA_CFLAGS += -D__MAX_ACTION_SEND=0
EXTRA_CFLAGS += -DLIBRT_ERROR
RT_USE_LIBRT := 1
include $(WRNC)/applications/common/rt/Makefile
......@@ -433,16 +433,16 @@ struct rt_application app = {
.git_version = GIT_VERSION
},
.mq = mq,
.n_mq = 2,
.n_mq = ARRAY_SIZE(mq),
.structures = wrtd_in_structures,
.n_structures = __WRTD_IN_STRUCT_MAX,
.n_structures = ARRAY_SIZE(wrtd_in_structures),
.variables = wrtd_in_variables,
.n_variables = __WRTD_IN_VAR_MAX,
.n_variables = ARRAY_SIZE(wrtd_in_variables),
.actions = wrtd_in_actions,
.n_actions = __WRTD_IN_ACTION_MAX,
.n_actions = ARRAY_SIZE(wrtd_in_actions),
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment