From 9875f24b8542548aa7449e7f615dab1d8ad124fd Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Wed, 29 Apr 2015 10:16:06 +0000 Subject: [PATCH] register function counts elements now. FossilOrigin-Name: a2954b6a4b52ebb7e3d3a565270daa2ad3a324f6eb0b8ae4c428c4b888f93b4f --- src/capwap/capwap_80211_actions_ac.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/capwap/capwap_80211_actions_ac.c b/src/capwap/capwap_80211_actions_ac.c index 0fa6059a..dc241071 100644 --- a/src/capwap/capwap_80211_actions_ac.c +++ b/src/capwap/capwap_80211_actions_ac.c @@ -51,16 +51,15 @@ cw_action_out_t capwap_80211_actions_ac_out[]={ int cw_register_actions_capwap_80211_ac(struct cw_actiondef *def) { - cw_actionlist_in_register_actions(def->in, capwap_80211_actions_ac_in); - cw_actionlist_out_register_actions(def->out, capwap_80211_actions_ac_out); - int rc; - rc = cw_strheap_register_strings(def->strelem, capwap_strings_elem80211); - printf("80211 Registerd %d\n",rc); + rc=cw_actionlist_in_register_actions(def->in, capwap_80211_actions_ac_in); + rc+=cw_actionlist_out_register_actions(def->out, capwap_80211_actions_ac_out); + + rc+= cw_strheap_register_strings(def->strelem, capwap_strings_elem80211); /*rc += cw_strheap_register_strings(def->strelem, capwap_strings_elem); */ - return 1; + return rc; }