=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sndiod/file.c,v retrieving revision 1.23 retrieving revision 1.24 diff -u -r1.23 -r1.24 --- src/usr.bin/sndiod/file.c 2016/10/27 04:37:47 1.23 +++ src/usr.bin/sndiod/file.c 2019/06/28 13:35:03 1.24 @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.23 2016/10/27 04:37:47 ratchov Exp $ */ +/* $OpenBSD: file.c,v 1.24 2019/06/28 13:35:03 deraadt Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov * @@ -394,7 +394,7 @@ timo = -1; log_flush(); res = poll(pfds, nfds, timo); - if (res < 0) { + if (res == -1) { if (errno != EINTR) { log_puts("poll failed"); panic(); @@ -440,7 +440,7 @@ { sigset_t set; - if (clock_gettime(CLOCK_UPTIME, &file_ts) < 0) { + if (clock_gettime(CLOCK_UPTIME, &file_ts) == -1) { log_puts("filelist_init: CLOCK_UPTIME unsupported\n"); panic(); }