diff options
Diffstat (limited to 'src/notify.c')
-rw-r--r-- | src/notify.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/notify.c b/src/notify.c index eaa8224..4ae4dd5 100644 --- a/src/notify.c +++ b/src/notify.c @@ -63,12 +63,10 @@ static pthread_t notify_t_main; int notify_time_left (void) { - struct tm *ntime; time_t ntimer; int left; ntimer = time (NULL); - ntime = localtime (&ntimer); left = notify_app.time - ntimer; return left > 0 ? left : 0; @@ -328,12 +326,12 @@ notify_main_thread (void *arg) { const unsigned thread_sleep = 1; const unsigned check_app = MININSEC; - int elapse = 0, got_app = 0; + int elapse = 0; + int got_app; struct tm *ntime; time_t ntimer; elapse = 0; - got_app = 0; for (;;) { |