Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Feb 2017 00:42:55 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r313357 - head/usr.sbin/syslogd
Message-ID:  <201702070042.v170gtF6070723@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Tue Feb  7 00:42:55 2017
New Revision: 313357
URL: https://svnweb.freebsd.org/changeset/base/313357

Log:
  Use a flexible array for TypeNames instead of hardcoding the array length
  
  MFC after:	1 week
  Sponsored by:	Dell EMC Isilon

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

Modified: head/usr.sbin/syslogd/syslogd.c
==============================================================================
--- head/usr.sbin/syslogd/syslogd.c	Tue Feb  7 00:09:48 2017	(r313356)
+++ head/usr.sbin/syslogd/syslogd.c	Tue Feb  7 00:42:55 2017	(r313357)
@@ -287,7 +287,7 @@ static int repeatinterval[] = { 30, 120,
 #define F_WALL		6		/* everyone logged on */
 #define F_PIPE		7		/* pipe to program */
 
-static const char *TypeNames[8] = {
+static const char *TypeNames[] = {
 	"UNUSED",	"FILE",		"TTY",		"CONSOLE",
 	"FORW",		"USERS",	"WALL",		"PIPE"
 };



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702070042.v170gtF6070723>