summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/recur.c6
-rwxr-xr-xsrc/recur.h4
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);