summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2011-03-15 10:31:32 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2011-03-15 10:31:32 +0000
commit6c2b616ef9a42dbfd605d5b432e912548227f03a (patch)
tree982278089eab02d672de5068c5f1f20002043295 /usr.bin
parente6d57715b6515391fb77a9640787c8f08d610e9e (diff)
use timerclear macro
ok ratchov@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/aucat/file.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/aucat/file.c b/usr.bin/aucat/file.c
index e96d9eecea7..e527107cd45 100644
--- a/usr.bin/aucat/file.c
+++ b/usr.bin/aucat/file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.23 2010/11/05 16:09:50 ratchov Exp $ */
+/* $OpenBSD: file.c,v 1.24 2011/03/15 10:31:31 okan Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -557,10 +557,8 @@ filelist_done(void)
dbg_sync = 1;
dbg_flush();
#endif
- it.it_value.tv_sec = 0;
- it.it_value.tv_usec = 0;
- it.it_interval.tv_sec = 0;
- it.it_interval.tv_usec = 0;
+ timerclear(&it.it_value);
+ timerclear(&it.it_interval);
if (setitimer(ITIMER_REAL, &it, NULL) < 0) {
perror("setitimer");
exit(1);