From owner-svn-src-head@FreeBSD.ORG Thu Jun 11 09:59:47 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E0CF1065742; Thu, 11 Jun 2009 09:59:47 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 5C9368FC12; Thu, 11 Jun 2009 09:59:47 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n5B9xlPj042399; Thu, 11 Jun 2009 09:59:47 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5B9xl3A042398; Thu, 11 Jun 2009 09:59:47 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <200906110959.n5B9xl3A042398@svn.freebsd.org> From: Ed Schouten Date: Thu, 11 Jun 2009 09:59:47 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r193982 - head/usr.sbin/pstat X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jun 2009 09:59:48 -0000 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;