Skip to contentSkip to conversation

master - cleanup: drop double const specifier

PATCH Zdenek Kabelac 1 participant 1 message Feb 12, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=375e38709ca2842c97ee56899a8a3f34abc61a30
Commit:        375e38709ca2842c97ee56899a8a3f34abc61a30
Parent:        2a9eda1229c9d5d7150acdd3d8dd4908fbc784a8
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sat Feb 11 20:30:16 2017 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Sat Feb 11 20:30:16 2017 +0100

cleanup: drop double const specifier

Remove duplicated 'const' specifier.
Reindent.

---
 daemons/lvmpolld/lvmpolld-cmd-utils.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
daemons/lvmpolld/lvmpolld-cmd-utils.c +6 -4
index f70fd0d..601338f 100644
@@ -19,10 +19,12 @@
 
 #define MIN_ARGV_SIZE  8
 
-static const char *const const polling_ops[] = { [PVMOVE] = LVMPD_REQ_PVMOVE,
-						 [CONVERT] = LVMPD_REQ_CONVERT,
-						 [MERGE] = LVMPD_REQ_MERGE,
-						 [MERGE_THIN] = LVMPD_REQ_MERGE_THIN };
+static const char *const polling_ops[] = {
+	[PVMOVE] = LVMPD_REQ_PVMOVE,
+	[CONVERT] = LVMPD_REQ_CONVERT,
+	[MERGE] = LVMPD_REQ_MERGE,
+	[MERGE_THIN] = LVMPD_REQ_MERGE_THIN
+};
 
 const char *polling_op(enum poll_type type)
 {