From fb808063cd6ca3766528a3fd83fb51fb7070200d Mon Sep 17 00:00:00 2001 From: bz Date: Thu, 10 Jun 2010 14:19:51 +0000 Subject: Make the char *n_name member of struct nlist 'const'. This avoids errors or __DECONST() from places with higher WARNS levels. Adjust a local cache variable in ipcs to const as well to compile in the new world order. Suggested by: jhb Reviewed by: jhb, kib, brueffer (man) --- usr.bin/ipcs/ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/ipcs/ipc.c') diff --git a/usr.bin/ipcs/ipc.c b/usr.bin/ipcs/ipc.c index dfb4bae..f904e01 100644 --- a/usr.bin/ipcs/ipc.c +++ b/usr.bin/ipcs/ipc.c @@ -128,7 +128,7 @@ sysctlgatherstruct(void *addr, size_t size, struct scgs_vector *vecarr) void kget(int idx, void *addr, size_t size) { - char *symn; /* symbol name */ + const char *symn; /* symbol name */ size_t tsiz; int rv; unsigned long kaddr; -- cgit v1.1