diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-05-19 19:00:44 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2021-05-20 16:43:40 +0200 |
commit | fdda291a0ea22508c2f1d4683bd9cde02ddb2427 (patch) | |
tree | 30cb5d9270b3ab30b9fc4cb457716df6efc42de1 /solaris/Platform.c | |
parent | 4676e35f425aa674fea23745f1628102268f9071 (diff) |
Solaris: add kstat lookup wrappers
The system interfaces kstat_lookup() and kstat_data_lookup() take a
non-constant string parameter, but passing string literals is valid.
Add wrapper functions to ignore all the const-discard warnings.
Diffstat (limited to 'solaris/Platform.c')
-rw-r--r-- | solaris/Platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/solaris/Platform.c b/solaris/Platform.c index 81e8d28d..06b6c357 100644 --- a/solaris/Platform.c +++ b/solaris/Platform.c @@ -163,7 +163,7 @@ int Platform_getMaxPid() { kstat_ctl_t* kc = kstat_open(); if (kc != NULL) { - kstat_t* kshandle = kstat_lookup(kc, "unix", 0, "var"); + kstat_t* kshandle = kstat_lookup_wrapper(kc, "unix", 0, "var"); if (kshandle != NULL) { kstat_read(kc, kshandle, NULL); |