From 493f0f17094cc6f7c366ab86df111fe59011fcb3 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Thu, 11 Jun 2009 09:59:47 +0000 Subject: [PATCH] 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(-) diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c index f383968a2811..28103f7ab15c 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;