Module Name:    src
Committed By:   mrg
Date:           Mon Feb 11 19:45:54 UTC 2019

Modified Files:
        src/usr.sbin/syslogd: syslogd.h

Log Message:
add parens around defines with expressions that could expand poorly
depending on the usage.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/usr.sbin/syslogd/syslogd.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/syslogd/syslogd.h
diff -u src/usr.sbin/syslogd/syslogd.h:1.7 src/usr.sbin/syslogd/syslogd.h:1.8
--- src/usr.sbin/syslogd/syslogd.h:1.7	Tue Sep  8 18:33:12 2015
+++ src/usr.sbin/syslogd/syslogd.h	Mon Feb 11 19:45:54 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: syslogd.h,v 1.7 2015/09/08 18:33:12 plunky Exp $	*/
+/*	$NetBSD: syslogd.h,v 1.8 2019/02/11 19:45:54 mrg Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -243,8 +243,8 @@ void dbprintf(const char *, const char *
 } while (/*CONSTCOND*/0)
 
 #define MAXUNAMES		20	/* maximum number of user names */
-#define BSD_TIMESTAMPLEN	14+1
-#define MAX_TIMESTAMPLEN	31+1
+#define BSD_TIMESTAMPLEN	(14+1)
+#define MAX_TIMESTAMPLEN	(31+1)
 
 /* maximum field lengths in syslog-protocol */
 #define PRI_MAX	      5

Reply via email to