Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/syslogd Explicitly mark a NEWREF as unused
details: https://anonhg.NetBSD.org/src/rev/5e0fb30d4f9b
branches: trunk
changeset: 765346:5e0fb30d4f9b
user: joerg <joerg%NetBSD.org@localhost>
date: Tue May 24 13:26:04 2011 +0000
description:
Explicitly mark a NEWREF as unused
diffstat:
usr.sbin/syslogd/syslogd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 75a7b29727fa -r 5e0fb30d4f9b usr.sbin/syslogd/syslogd.c
--- a/usr.sbin/syslogd/syslogd.c Tue May 24 13:25:25 2011 +0000
+++ b/usr.sbin/syslogd/syslogd.c Tue May 24 13:26:04 2011 +0000
@@ -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:
Home |
Main Index |
Thread Index |
Old Index