You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/01/27 06:12:47 UTC

[09/10] incubator-mynewt-larva git commit: Don't pass garbage arg to callout.

Don't pass garbage arg to callout.


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/be3cb8be
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/be3cb8be
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/be3cb8be

Branch: refs/heads/master
Commit: be3cb8bec2f299fd5725ad896dceb8506be75a36
Parents: 2840077
Author: Christopher Collins <cc...@gmail.com>
Authored: Wed Jan 27 00:08:30 2016 -0500
Committer: Christopher Collins <cc...@gmail.com>
Committed: Wed Jan 27 00:12:09 2016 -0500

----------------------------------------------------------------------
 net/nimble/host/src/ble_hs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/be3cb8be/net/nimble/host/src/ble_hs.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_hs.c b/net/nimble/host/src/ble_hs.c
index 76b174d..037b8a0 100644
--- a/net/nimble/host/src/ble_hs.c
+++ b/net/nimble/host/src/ble_hs.c
@@ -120,7 +120,7 @@ ble_hs_task_handler(void *arg)
         case OS_EVENT_T_TIMER:
             cf = (struct os_callout_func *)ev;
             assert(cf->cf_func);
-            cf->cf_func(cf->cf_arg);
+            cf->cf_func(ev->ev_arg);
             break;
 
         case BLE_HOST_HCI_EVENT_CTLR_EVENT: