summaryrefslogtreecommitdiffstats
path: root/lib/libdevstat/devstat.c
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2004-06-25 01:16:02 +0000
committerkan <kan@FreeBSD.org>2004-06-25 01:16:02 +0000
commite8d7daaa93c37fd13b006846dc9945d5b9d253ea (patch)
treebf18a400e4d4ddf810cdd3b726666fe89a8ace4c /lib/libdevstat/devstat.c
parent4d32bd722dc911178dea899f447cafb400769806 (diff)
downloadFreeBSD-src-e8d7daaa93c37fd13b006846dc9945d5b9d253ea.zip
FreeBSD-src-e8d7daaa93c37fd13b006846dc9945d5b9d253ea.tar.gz
Remove the use of cast as lvalue. GCC 3.4 isses a deprecation warning
for this now.
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