summaryrefslogtreecommitdiff
path: root/src/recur.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2007-08-15 15:37:31 +0000
committerFrederic Culot <calcurse@culot.org>2007-08-15 15:37:31 +0000
commit77d047d0334d7b8c522f25c7b77600f8e2ac284f (patch)
tree899b5067b1771f8dad0d92796b245e7676aeca65 /src/recur.c
parent9fdc33133ce6770e5eecb591d480ed378a66f673 (diff)
downloadcalcurse-77d047d0334d7b8c522f25c7b77600f8e2ac284f.zip
recur_repeat_item() updated to use apoint_hilt()
Diffstat (limited to 'src/recur.c')
-rwxr-xr-xsrc/recur.c6
1 files changed, 4 insertions, 2 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);