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:
parent
6231f75bcf
commit
493f0f1709
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user