Module Name:    src
Committed By:   gutteridge
Date:           Sat Aug  3 02:43:37 UTC 2024

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

Log Message:
syslogd.c: avoid use of undefined macro (NFCI)

SIGN_NUM_PRIVALS isn't defined anywhere; fix the block, though it's not
actually applicable in NetBSD builds. Issue noted by and patch from RVP
as a peripheral item in PR lib/57172.


To generate a diff of this commit:
cvs rdiff -u -r1.141 -r1.142 src/usr.sbin/syslogd/syslogd.c

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.c
diff -u src/usr.sbin/syslogd/syslogd.c:1.141 src/usr.sbin/syslogd/syslogd.c:1.142
--- src/usr.sbin/syslogd/syslogd.c:1.141	Wed Oct 11 23:22:13 2023
+++ src/usr.sbin/syslogd/syslogd.c	Sat Aug  3 02:43:37 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: syslogd.c,v 1.141 2023/10/11 23:22:13 uwe Exp $	*/
+/*	$NetBSD: syslogd.c,v 1.142 2024/08/03 02:43:37 gutteridge Exp $	*/
 
 /*
  * Copyright (c) 1983, 1988, 1993, 1994
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 19
 #if 0
 static char sccsid[] = "@(#)syslogd.c	8.3 (Berkeley) 4/4/94";
 #else
-__RCSID("$NetBSD: syslogd.c,v 1.141 2023/10/11 23:22:13 uwe Exp $");
+__RCSID("$NetBSD: syslogd.c,v 1.142 2024/08/03 02:43:37 gutteridge Exp $");
 #endif
 #endif /* not lint */
 
@@ -557,7 +557,7 @@ getgroup:
 #if (IETF_NUM_PRIVALUES != (LOG_NFACILITIES<<3))
 	logerror("Warning: system defines %d priority values, but "
 	    "syslog-protocol/syslog-sign specify %d values",
-	    LOG_NFACILITIES, SIGN_NUM_PRIVALS);
+	    LOG_NFACILITIES, IETF_NUM_PRIVALUES>>3);
 #endif
 
 	/*

Reply via email to