From 06bce6ca23b25ef22dfc3bccf917d0d8704287ba Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 11 Jun 2009 09:59:47 +0000 Subject: Correct my previous commit to pstat(8). Not only mark the strings inside the array as const, but do the same for the elements of the array itself. Submitted by: Christoph Mallon --- usr.sbin/pstat/pstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/pstat/pstat.c') diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c index f383968..28103f7 100644 --- a/usr.sbin/pstat/pstat.c +++ b/usr.sbin/pstat/pstat.c @@ -359,7 +359,7 @@ filemode(void) char *buf, flagbuf[16], *fbp; int maxf, openf; size_t len; - static const char *dtypes[] = { "???", "inode", "socket", + static char const * const dtypes[] = { "???", "inode", "socket", "pipe", "fifo", "kqueue", "crypto" }; int i; int wid; -- cgit v1.1