Also move const to alway be on the right of the part of the type it modifies.
Signed-off-by: mulhern <amulhern(a)redhat.com>
---
src/lib/plugin_apis/common.h | 2 +-
src/plugins/lvm.c | 4 ++--
src/plugins/test_lvm.c | 2 +-
src/utils/sizes.c | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/lib/plugin_apis/common.h b/src/lib/plugin_apis/common.h
index 0fd937b..f066def 100644
--- a/src/lib/plugin_apis/common.h
+++ b/src/lib/plugin_apis/common.h
@@ -1,3 +1,3 @@
#include <glib.h>
-const gchar** get_supported_functions ();
+gchar const * const * get_supported_functions ();
diff --git a/src/plugins/lvm.c b/src/plugins/lvm.c
index 20b4153..7a6215d 100644
--- a/src/plugins/lvm.c
+++ b/src/plugins/lvm.c
@@ -34,7 +34,7 @@
* the functions are in bytes.
*/
-static const gchar* supported_functions[] = {
+static gchar const * const supported_functions[] = {
"bd_lvm_is_supported_pe_size",
"bd_lvm_get_max_lv_size",
"bd_lvm_round_size_to_pe",
@@ -42,7 +42,7 @@ static const gchar* supported_functions[] = {
"bd_lvm_get_thpool_padding",
NULL};
-const gchar** get_supported_functions () {
+gchar const * const * get_supported_functions () {
return supported_functions;
}
diff --git a/src/plugins/test_lvm.c b/src/plugins/test_lvm.c
index 9ec7dd3..6e7bd6c 100644
--- a/src/plugins/test_lvm.c
+++ b/src/plugins/test_lvm.c
@@ -13,7 +13,7 @@ void print_hash_table (GHashTable *table) {
int main (int argc, char **argv) {
gint exit_status;
- const gchar **fname = NULL;
+ gchar const * const *fname = NULL;
gchar *msg = NULL;
gchar *stdout = NULL;
gchar *stderr = NULL;
diff --git a/src/utils/sizes.c b/src/utils/sizes.c
index 7ca1e4a..efb14d7 100644
--- a/src/utils/sizes.c
+++ b/src/utils/sizes.c
@@ -8,7 +8,7 @@
#define INT_LT_FLOAT(i, f) (((i) - (f)) < INT_FLOAT_EPS)
#define INT_GT_FLOAT(i, f) (((i) - (f)) > INT_FLOAT_EPS)
-static const gchar *size_prefixes[] = {"", "Ki", "Mi",
"Gi", "Ti", "Pi", "Ei", NULL};
+static gchar const * const size_prefixes[] = {"", "Ki",
"Mi", "Gi", "Ti", "Pi", "Ei", NULL};
/**
* bd_utils_size_human_readable:
--
1.9.3