Enforce const correctness
Clang enforces const correctness. Apply its fixes.
Change-Id: I93f6a6dcb11844003a3691292de721e3b72b4a47
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/cper-utils.c b/cper-utils.c
index 84186ad..aee1792 100644
--- a/cper-utils.c
+++ b/cper-utils.c
@@ -131,7 +131,7 @@
}
//Converts a single integer value to an object containing a value, and a readable name if possible.
-json_object *integer_to_readable_pair(UINT64 value, int len, int keys[],
+json_object *integer_to_readable_pair(UINT64 value, int len, const int keys[],
const char *values[],
const char *default_value)
{
@@ -151,7 +151,8 @@
}
//Converts a single integer value to an object containing a value, readable name and description if possible.
-json_object *integer_to_readable_pair_with_desc(int value, int len, int keys[],
+json_object *integer_to_readable_pair_with_desc(int value, int len,
+ const int keys[],
const char *values[],
const char *descriptions[],
const char *default_value)