Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/syslogd add parens around defines with expressions ...



details:   https://anonhg.NetBSD.org/src/rev/b55496779610
branches:  trunk
changeset: 448856:b55496779610
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Feb 11 19:45:54 2019 +0000

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

diffstat:

 usr.sbin/syslogd/syslogd.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 601c541f30ec -r b55496779610 usr.sbin/syslogd/syslogd.h
--- a/usr.sbin/syslogd/syslogd.h        Mon Feb 11 19:15:38 2019 +0000
+++ b/usr.sbin/syslogd/syslogd.h        Mon Feb 11 19:45:54 2019 +0000
@@ -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 @@
 } 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



Home | Main Index | Thread Index | Old Index