Module Name: src
Committed By: plunky
Date: Thu Jan 27 11:14:00 UTC 2011
Modified Files:
src/usr.sbin/btpand: channel.c
Log Message:
style nit
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/btpand/channel.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/btpand/channel.c
diff -u src/usr.sbin/btpand/channel.c:1.3 src/usr.sbin/btpand/channel.c:1.4
--- src/usr.sbin/btpand/channel.c:1.3 Tue May 12 21:08:30 2009
+++ src/usr.sbin/btpand/channel.c Thu Jan 27 11:13:59 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: channel.c,v 1.3 2009/05/12 21:08:30 plunky Exp $ */
+/* $NetBSD: channel.c,v 1.4 2011/01/27 11:13:59 plunky Exp $ */
/*-
* Copyright (c) 2008 Iain Hibbert
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: channel.c,v 1.3 2009/05/12 21:08:30 plunky Exp $");
+__RCSID("$NetBSD: channel.c,v 1.4 2011/01/27 11:13:59 plunky Exp $");
#include <sys/ioctl.h>
@@ -312,7 +312,7 @@
channel_tick = tick;
}
- if (channel_tick != 0 && evtimer_add(arg, &tv) < 0) {
+ if (channel_tick != 0 && evtimer_add(arg, &tv) == -1) {
log_err("Could not add watchdog event: %m");
exit(EXIT_FAILURE);
}