Date: Thu, 11 Jun 2009 09:59:47 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r193982 - head/usr.sbin/pstat Message-ID: <200906110959.n5B9xl3A042398@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906110959.n5B9xl3A042398>