summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2006-12-15 15:27:27 +0000
committerFrederic Culot <calcurse@culot.org>2006-12-15 15:27:27 +0000
commit10478d9b96243016dc668d5c58672e1c7c2a9295 (patch)
tree3a7c9fd97bca8eb985cc42559f8f3fec2c695ca5 /src
parent4a454476a2650b653f58184df2c1448d1a310360 (diff)
downloadcalcurse-10478d9b96243016dc668d5c58672e1c7c2a9295.tar.gz
calcurse-10478d9b96243016dc668d5c58672e1c7c2a9295.zip
missing headers added
Diffstat (limited to 'src')
-rwxr-xr-xsrc/notify.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/notify.c b/src/notify.c
index b53d217..137f068 100755
--- a/src/notify.c
+++ b/src/notify.c
@@ -1,4 +1,4 @@
-/* $calcurse: notify.c,v 1.5 2006/09/16 15:24:34 culot Exp $ */
+/* $calcurse: notify.c,v 1.6 2006/12/15 15:27:27 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -27,6 +27,9 @@
#include <ncurses.h>
#include <pthread.h>
#include <time.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
#include "i18n.h"
#include "utils.h"
@@ -272,8 +275,8 @@ void notify_check_repeated(recur_apoint_llist_node_t *i)
current_time = time(NULL);
pthread_mutex_lock(&notify_app->mutex);
- if (real_app_time = recur_item_inday(i->start, i->exc, i->rpt->type,
- i->rpt->freq, i->rpt->until, today()) > current_time) {
+ if ((real_app_time = recur_item_inday(i->start, i->exc, i->rpt->type,
+ i->rpt->freq, i->rpt->until, today()) > current_time)) {
if (!notify_app->got_app) {
if (real_app_time - current_time <= DAYINSEC)
update_notify = 1;