Const-correctness in iOS init code
diff --git a/src/arm/mach/init.c b/src/arm/mach/init.c
index d728889..2d8feeb 100644
--- a/src/arm/mach/init.c
+++ b/src/arm/mach/init.c
@@ -44,7 +44,7 @@
#endif
};
-static uint32_t get_sys_info(int type_specifier, char* name) {
+static uint32_t get_sys_info(int type_specifier, const char* name) {
size_t size = 0;
uint32_t result = 0;
int mib[2] = { CTL_HW, type_specifier };
@@ -59,7 +59,7 @@
return result;
}
-static uint64_t get_sys_info_by_name(char* type_specifier) {
+static uint64_t get_sys_info_by_name(const char* type_specifier) {
size_t size = 0;
uint32_t result = 0;
if (sysctlbyname(type_specifier, NULL, &size, NULL, 0) != 0) {