Remove the use of cast as lvalue. GCC 3.4 isses a deprecation warning
for this now.
This commit is contained in:
parent
2a7be1b6d1
commit
f664b76fe4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user