diff options
author | Jordan Augé <jordan.auge+fdio@cisco.com> | 2019-11-05 12:28:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2019-11-05 12:28:49 +0000 |
commit | 8adda70cd102a3ea5d91a72aecfde7107dd0c807 (patch) | |
tree | 7fcf5a6644d51ce1ab459fe2bd2888aea39c7b51 /ctrl/facemgr/src/util | |
parent | 9793bd7849975399ca103480ab946669888080a8 (diff) | |
parent | 29bb779084d76fb31e1b5dfbf54995918d02fc0e (diff) |
Merge "[HICN-372] Code clean up"
Diffstat (limited to 'ctrl/facemgr/src/util')
-rw-r--r-- | ctrl/facemgr/src/util/map.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ctrl/facemgr/src/util/map.h b/ctrl/facemgr/src/util/map.h index 19a308d86..adab8d758 100644 --- a/ctrl/facemgr/src/util/map.h +++ b/ctrl/facemgr/src/util/map.h @@ -219,7 +219,7 @@ NAME ## _get_key_array(NAME ## _t * map, KEY_T **array) { for (int i = 0; i < n; i++) \ (*array)[i] = pair_array[i]->key; \ free(pair_array); \ - return 0; \ + return n; \ } \ \ int \ @@ -238,7 +238,7 @@ NAME ## _get_value_array(NAME ## _t * map, VAL_T **array) { for (int i = 0; i < n; i++) \ (*array)[i] = pair_array[i]->value; \ free(pair_array); \ - return 0; \ + return n; \ } #endif /* UTIL_MAP_H */ |