diff options
author | Frederic Culot <calcurse@culot.org> | 2007-08-15 15:37:31 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2007-08-15 15:37:31 +0000 |
commit | 77d047d0334d7b8c522f25c7b77600f8e2ac284f (patch) | |
tree | 899b5067b1771f8dad0d92796b245e7676aeca65 | |
parent | 9fdc33133ce6770e5eecb591d480ed378a66f673 (diff) | |
download | calcurse-77d047d0334d7b8c522f25c7b77600f8e2ac284f.zip |
recur_repeat_item() updated to use apoint_hilt()
-rwxr-xr-x | src/recur.c | 6 | ||||
-rwxr-xr-x | src/recur.h | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/recur.c b/src/recur.c index ae50bea..d53eb3c 100755 --- a/src/recur.c +++ b/src/recur.c @@ -1,4 +1,4 @@ -/* $calcurse: recur.c,v 1.28 2007/07/29 20:59:09 culot Exp $ */ +/* $calcurse: recur.c,v 1.29 2007/08/15 15:37:31 culot Exp $ */ /* * Calcurse - text-based organizer @@ -572,7 +572,7 @@ void recur_apoint_erase(long start, unsigned num, unsigned delete_whole) * and then delete the selected item to recreate it as a recurrent one */ void -recur_repeat_item(int item_nb) +recur_repeat_item(void) { struct tm *lt; time_t t; @@ -598,11 +598,13 @@ recur_repeat_item(int item_nb) char *mesg_older = _("Sorry, the date you entered is older than the item start time."); int type = 0, freq = 0; + int item_nb; struct day_item_s *p; recur_apoint_llist_node_t *ra; struct recur_event_s *re; long until, date; + item_nb = apoint_hilt(); p = day_get_item(item_nb); if (p->type != APPT && p->type != EVNT) { status_mesg(wrong_type_1, wrong_type_2); diff --git a/src/recur.h b/src/recur.h index 84dae52..7a3c036 100755 --- a/src/recur.h +++ b/src/recur.h @@ -1,4 +1,4 @@ -/* $calcurse: recur.h,v 1.14 2007/07/29 20:59:09 culot Exp $ */ +/* $calcurse: recur.h,v 1.15 2007/08/15 15:37:31 culot Exp $ */ /* * Calcurse - text-based organizer @@ -90,7 +90,7 @@ unsigned recur_item_inday(long, struct days_s *, int, int, long, long); void recur_event_erase(long, unsigned, unsigned); void recur_apoint_erase(long, unsigned, unsigned); -void recur_repeat_item(int); +void recur_repeat_item(void); struct days_s *recur_exc_scan(FILE *); struct notify_app_s *recur_apoint_check_next(struct notify_app_s *, long, long); |