summaryrefslogtreecommitdiffstats
path: root/lib/libdevstat/devstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libdevstat/devstat.c')
-rw-r--r--lib/libdevstat/devstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libdevstat/devstat.c b/lib/libdevstat/devstat.c
index cc181f8..f583755 100644
--- a/lib/libdevstat/devstat.c
+++ b/lib/libdevstat/devstat.c
@@ -1572,7 +1572,7 @@ readkmem_nl(kvm_t *kd, const char *name, void *buf, size_t nbytes)
const char *func_name = "readkmem_nl";
struct nlist nl[2];
- (const char *)nl[0].n_name = name;
+ nl[0].n_name = (char *)name;
nl[1].n_name = NULL;
if (kvm_nlist(kd, nl) == -1) {
OpenPOWER on IntegriCloud