summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2016-01-08 10:50:26 +0000
committerratchov <ratchov@openbsd.org>2016-01-08 10:50:26 +0000
commitbdf6eb58f20a63fcff7adb18383255a9bf5e5e37 (patch)
tree344e65b475f176d88d6c29e03e96b685839a58ec
parentDon't calculate clock deltas is there are no time-outs. Removes (harmless) (diff)
downloadwireguard-openbsd-bdf6eb58f20a63fcff7adb18383255a9bf5e5e37.tar.xz
wireguard-openbsd-bdf6eb58f20a63fcff7adb18383255a9bf5e5e37.zip
remove redundant debug message
-rw-r--r--usr.bin/sndiod/file.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/sndiod/file.c b/usr.bin/sndiod/file.c
index 16e317f6dbc..d295ee92b0a 100644
--- a/usr.bin/sndiod/file.c
+++ b/usr.bin/sndiod/file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.16 2016/01/08 10:44:15 ratchov Exp $ */
+/* $OpenBSD: file.c,v 1.17 2016/01/08 10:50:26 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
@@ -415,10 +415,6 @@ file_poll(void)
if (timo_queue) {
delta_nsec = 1000000000LL * (ts.tv_sec - file_ts.tv_sec);
delta_nsec += ts.tv_nsec - file_ts.tv_nsec;
-#ifdef DEBUG
- if (delta_nsec < 0)
- log_puts("file_poll: negative time interval\n");
-#endif
if (delta_nsec >= 0 && delta_nsec < 1000000000LL)
timo_update(delta_nsec / 1000);
else {