Module Name:    src
Committed By:   joerg
Date:           Tue May 24 13:26:04 UTC 2011

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

Log Message:
Explicitly mark a NEWREF as unused


To generate a diff of this commit:
cvs rdiff -u -r1.101 -r1.102 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.101 src/usr.sbin/syslogd/syslogd.c:1.102
--- src/usr.sbin/syslogd/syslogd.c:1.101	Tue May 24 13:25:25 2011
+++ src/usr.sbin/syslogd/syslogd.c	Tue May 24 13:26:04 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: syslogd.c,v 1.101 2011/05/24 13:25:25 joerg Exp $	*/
+/*	$NetBSD: syslogd.c,v 1.102 2011/05/24 13:26:04 joerg Exp $	*/
 
 /*
  * Copyright (c) 1983, 1988, 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)syslogd.c	8.3 (Berkeley) 4/4/94";
 #else
-__RCSID("$NetBSD: syslogd.c,v 1.101 2011/05/24 13:25:25 joerg Exp $");
+__RCSID("$NetBSD: syslogd.c,v 1.102 2011/05/24 13:26:04 joerg Exp $");
 #endif
 #endif /* not lint */
 
@@ -2129,7 +2129,7 @@
 	 * this enables the buffer in the else branch to be freed
 	 * --> every branch needs one NEWREF() or buf_msg_new()! */
 	if (buffer) {
-		NEWREF(buffer);
+		(void)NEWREF(buffer);
 	} else {
 		if (f->f_prevcount > 1) {
 			/* possible syslog-sign incompatibility:

Reply via email to