master - cleanup: drop double const
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=ac6b3559780ccabc8cd46353e10520677b3c1277 Commit: ac6b3559780ccabc8cd46353e10520677b3c1277 Parent: edbdbddfb67990048512b6dbd6772fd69ad34f86 Author: Zdenek Kabelac <[email protected]> AuthorDate: Wed May 27 15:46:41 2015 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Jun 15 14:46:44 2015 +0200
cleanup: drop double const
Second const is unneeded.
Also always create whole array with MAX elements.
--- daemons/lvmpolld/lvmpolld-core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
daemons/lvmpolld/lvmpolld-core.c +1 -1
@@ -852,7 +852,7 @@ enum action_index { ACTION_MAX /* keep at the end */ }; -static const action_fn_t const actions[] = { [ACTION_DUMP ] = action_dump }; +static const action_fn_t actions[ACTION_MAX ] = { [ACTION_DUMP ] = action_dump };static int _make_action (enum action_index idx,void *args) {