diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2015-05-27 15:46:41 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2015-06-15 14:46:44 +0200 |
commit | ac6b3559780ccabc8cd46353e10520677b3c1277 (patch) | |
tree | 86158039c938358a4e8b5b3159cb24a390b5dcf9 | |
parent | edbdbddfb67990048512b6dbd6772fd69ad34f86 (diff) | |
download | lvm2-ac6b3559780ccabc8cd46353e10520677b3c1277.tar.gz |
cleanup: drop double const
Second const is unneeded.
Also always create whole array with MAX elements.
-rw-r--r-- | daemons/lvmpolld/lvmpolld-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemons/lvmpolld/lvmpolld-core.c b/daemons/lvmpolld/lvmpolld-core.c index c5b22d70f..9d46c7edd 100644 --- a/daemons/lvmpolld/lvmpolld-core.c +++ b/daemons/lvmpolld/lvmpolld-core.c @@ -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) { |