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
This commit is contained in:
Ed Schouten 2009-06-11 09:59:47 +00:00
parent 6231f75bcf
commit 493f0f1709
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=193982

View File

@ -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;