diff options
author | Marat Dukhan <maratek@gmail.com> | 2018-03-18 22:57:05 -0700 |
---|---|---|
committer | Marat Dukhan <maratek@gmail.com> | 2018-03-18 22:57:05 -0700 |
commit | 7d52b05f6c46d2e05c962b7541717d23816f0a04 (patch) | |
tree | 0484ab7df2e8866ff9103562573420abeb773fab /src/arm/mach/init.c | |
parent | dbc78409b1f60fdb5ca7bf67302a927762c12743 (diff) | |
download | cpuinfo-7d52b05f6c46d2e05c962b7541717d23816f0a04.tar.gz |
Const-correctness in iOS init code
Diffstat (limited to 'src/arm/mach/init.c')
-rw-r--r-- | src/arm/mach/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ struct cpuinfo_arm_isa cpuinfo_isa = { #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 @@ static uint32_t get_sys_info(int type_specifier, char* name) { 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) { |