nmgr_os; remove parameter from init so this pkg can be initialized via syscfg.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/abcd2502 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/abcd2502 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/abcd2502 Branch: refs/heads/develop Commit: abcd2502d09114e877e4ad4ecce1450ba11ad0aa Parents: 0780cf0 Author: Marko Kiiskila <ma...@runtime.io> Authored: Fri Oct 7 08:30:58 2016 -0700 Committer: Marko Kiiskila <ma...@runtime.io> Committed: Fri Oct 7 13:21:22 2016 -0700 ---------------------------------------------------------------------- mgmt/newtmgr/nmgr_os/include/nmgr_os/nmgr_os.h | 3 +-- mgmt/newtmgr/nmgr_os/src/newtmgr_os.c | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/abcd2502/mgmt/newtmgr/nmgr_os/include/nmgr_os/nmgr_os.h ---------------------------------------------------------------------- diff --git a/mgmt/newtmgr/nmgr_os/include/nmgr_os/nmgr_os.h b/mgmt/newtmgr/nmgr_os/include/nmgr_os/nmgr_os.h index 5da2f6d..03bf944 100644 --- a/mgmt/newtmgr/nmgr_os/include/nmgr_os/nmgr_os.h +++ b/mgmt/newtmgr/nmgr_os/include/nmgr_os/nmgr_os.h @@ -34,8 +34,7 @@ extern "C" { #define NMGR_ID_DATETIME_STR 4 #define NMGR_ID_RESET 5 -struct os_eventq; -int nmgr_os_groups_register(struct os_eventq *nmgr_evq); +int nmgr_os_groups_register(void); #ifdef __cplusplus } http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/abcd2502/mgmt/newtmgr/nmgr_os/src/newtmgr_os.c ---------------------------------------------------------------------- diff --git a/mgmt/newtmgr/nmgr_os/src/newtmgr_os.c b/mgmt/newtmgr/nmgr_os/src/newtmgr_os.c index e1fc156..ed9ed6b 100644 --- a/mgmt/newtmgr/nmgr_os/src/newtmgr_os.c +++ b/mgmt/newtmgr/nmgr_os/src/newtmgr_os.c @@ -317,9 +317,9 @@ nmgr_reset(struct mgmt_jbuf *njb) } int -nmgr_os_groups_register(struct os_eventq *nmgr_evq) +nmgr_os_groups_register(void) { - os_callout_func_init(&nmgr_reset_callout, nmgr_evq, nmgr_reset_tmo, NULL); + os_callout_func_init(&nmgr_reset_callout, g_mgmt_evq, nmgr_reset_tmo, NULL); return mgmt_group_register(&nmgr_def_group); }