From 5b12c236cf68a182fb8075c7ec0797c4c64fd60c Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 3 Apr 2011 21:54:58 +0200 Subject: Remove dead assignments spotted by clang-analyzer. Signed-off-by: Lukas Fleischer --- src/notify.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/notify.c') 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 (;;) { -- cgit v1.2.3-54-g00ecf