summaryrefslogtreecommitdiff
path: root/src/notify.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-04-03 21:54:58 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-04-03 22:09:00 +0200
commit5b12c236cf68a182fb8075c7ec0797c4c64fd60c (patch)
tree26d6b771bf4e764b9beb3ac056acad89f28200b0 /src/notify.c
parent1473145d10a0ba529526897c08eab2fb176dac01 (diff)
downloadcalcurse-5b12c236cf68a182fb8075c7ec0797c4c64fd60c.zip
Remove dead assignments spotted by clang-analyzer.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/notify.c')
-rw-r--r--src/notify.c6
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 (;;)
{