svn commit: r193982 - head/usr.sbin/pstat

Ed Schouten ed at FreeBSD.org
Thu Jun 11 09:59:48 UTC 2009


Author: ed
Date: Thu Jun 11 09:59:47 2009
New Revision: 193982
URL: http://svn.freebsd.org/changeset/base/193982

Log:
  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

Modified:
  head/usr.sbin/pstat/pstat.c

Modified: head/usr.sbin/pstat/pstat.c
==============================================================================
--- head/usr.sbin/pstat/pstat.c	Thu Jun 11 09:55:26 2009	(r193981)
+++ head/usr.sbin/pstat/pstat.c	Thu Jun 11 09:59:47 2009	(r193982)
@@ -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;


More information about the svn-src-head mailing list