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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131075
@ -1572,7 +1572,7 @@ readkmem_nl(kvm_t *kd, const char *name, void *buf, size_t nbytes)
|
|||||||
const char *func_name = "readkmem_nl";
|
const char *func_name = "readkmem_nl";
|
||||||
struct nlist nl[2];
|
struct nlist nl[2];
|
||||||
|
|
||||||
(const char *)nl[0].n_name = name;
|
nl[0].n_name = (char *)name;
|
||||||
nl[1].n_name = NULL;
|
nl[1].n_name = NULL;
|
||||||
|
|
||||||
if (kvm_nlist(kd, nl) == -1) {
|
if (kvm_nlist(kd, nl) == -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user