Remove the use of cast as lvalue. GCC 3.4 isses a deprecation warning

for this now.
This commit is contained in:
Alexander Kabaev 2004-06-25 01:16:02 +00:00
parent 2a7be1b6d1
commit f664b76fe4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131075

View File

@ -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) {