use timerclear macro

from okan@
This commit is contained in:
Alexandre Ratchov 2011-03-17 08:44:37 +01:00
parent b050508158
commit eed7d0dc80
1 changed files with 2 additions and 4 deletions

View File

@ -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);