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

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