summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pstat
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-06-11 09:59:47 +0000
committered <ed@FreeBSD.org>2009-06-11 09:59:47 +0000
commit06bce6ca23b25ef22dfc3bccf917d0d8704287ba (patch)
tree0a8acc8703d44b2ca239979126262ca61ff72a25 /usr.sbin/pstat
parent39676e4ab432d3a8127aa1cf32f00f5fed51c6b0 (diff)
downloadFreeBSD-src-06bce6ca23b25ef22dfc3bccf917d0d8704287ba.zip
FreeBSD-src-06bce6ca23b25ef22dfc3bccf917d0d8704287ba.tar.gz
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
Diffstat (limited to 'usr.sbin/pstat')
-rw-r--r--usr.sbin/pstat/pstat.c2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud