diff options
| author | Robert Mustacchi <rm@fingolfin.org> | 2021-11-24 22:47:05 +0000 |
|---|---|---|
| committer | Robert Mustacchi <rm@fingolfin.org> | 2021-12-18 23:07:51 +0000 |
| commit | 617b28ccfac40348ebae033171d0643fcca18c22 (patch) | |
| tree | 8aff7f68e3828af2236c8a2eda3d08eb929fb7a1 /usr/src/lib/libkstat/common/kstat.c | |
| parent | 0be687ea0c09cd50b4ae51df829900fea257d535 (diff) | |
| download | illumos-joyent-617b28ccfac40348ebae033171d0643fcca18c22.tar.gz | |
14264 kstat_lookup and friends should take const strings
Reviewed by: Jason King <jason.brian.king@gmail.com>
Reviewed by: Andy Fiddaman <andy@omnios.org>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/lib/libkstat/common/kstat.c')
| -rw-r--r-- | usr/src/lib/libkstat/common/kstat.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/src/lib/libkstat/common/kstat.c b/usr/src/lib/libkstat/common/kstat.c index a84fe03c49..eb2e7b5350 100644 --- a/usr/src/lib/libkstat/common/kstat.c +++ b/usr/src/lib/libkstat/common/kstat.c @@ -23,6 +23,7 @@ * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * Copyright 2015 Nexenta Systems, Inc. All rights reserved. + * Copyright 2021 Oxide Computer Company */ #include <stdio.h> @@ -298,7 +299,8 @@ kstat_chain_update(kstat_ctl_t *kc) } kstat_t * -kstat_lookup(kstat_ctl_t *kc, char *ks_module, int ks_instance, char *ks_name) +kstat_lookup(kstat_ctl_t *kc, const char *ks_module, int ks_instance, + const char *ks_name) { kstat_t *ksp; @@ -315,7 +317,7 @@ kstat_lookup(kstat_ctl_t *kc, char *ks_module, int ks_instance, char *ks_name) } void * -kstat_data_lookup(kstat_t *ksp, char *name) +kstat_data_lookup(kstat_t *ksp, const char *name) { int i, size; char *namep, *datap; |
