svn commit: r313357 - head/usr.sbin/syslogd
Ngie Cooper
ngie at FreeBSD.org
Tue Feb 7 00:42:56 UTC 2017
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"
};
More information about the svn-src-all
mailing list