You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/01/22 01:47:07 UTC
incubator-mynewt-larva git commit: Need to fill in handler count for
default handlers.
Repository: incubator-mynewt-larva
Updated Branches:
refs/heads/master 04087b3e3 -> a4339d49e
Need to fill in handler count for default handlers.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/a4339d49
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/a4339d49
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/a4339d49
Branch: refs/heads/master
Commit: a4339d49e1e75a8b6d1662d54d9a0f3841938b8f
Parents: 04087b3
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Thu Jan 21 16:45:13 2016 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Thu Jan 21 16:46:33 2016 -0800
----------------------------------------------------------------------
libs/newtmgr/src/newtmgr.c | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/a4339d49/libs/newtmgr/src/newtmgr.c
----------------------------------------------------------------------
diff --git a/libs/newtmgr/src/newtmgr.c b/libs/newtmgr/src/newtmgr.c
index 05d204f..ffc1aa6 100644
--- a/libs/newtmgr/src/newtmgr.c
+++ b/libs/newtmgr/src/newtmgr.c
@@ -557,6 +557,8 @@ nmgr_default_groups_register(void)
NMGR_GROUP_SET_HANDLERS(&nmgr_def_group,
(struct nmgr_handler *)nmgr_def_group_handlers);
nmgr_def_group.ng_group_id = NMGR_GROUP_ID_DEFAULT;
+ nmgr_def_group.ng_handlers_count =
+ sizeof(nmgr_def_group_handlers) / sizeof(nmgr_def_group_handlers[0]);
rc = nmgr_group_register(&nmgr_def_group);
if (rc != 0) {