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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=193982
@ -359,7 +359,7 @@ filemode(void)
|
|||||||
char *buf, flagbuf[16], *fbp;
|
char *buf, flagbuf[16], *fbp;
|
||||||
int maxf, openf;
|
int maxf, openf;
|
||||||
size_t len;
|
size_t len;
|
||||||
static const char *dtypes[] = { "???", "inode", "socket",
|
static char const * const dtypes[] = { "???", "inode", "socket",
|
||||||
"pipe", "fifo", "kqueue", "crypto" };
|
"pipe", "fifo", "kqueue", "crypto" };
|
||||||
int i;
|
int i;
|
||||||
int wid;
|
int wid;
|
||||||
|
Loading…
Reference in New Issue
Block a user