recur_repeat_item() updated to use apoint_hilt()

This commit is contained in:
Frederic Culot 2007-08-15 15:37:31 +00:00
parent 9fdc33133c
commit 77d047d033
2 changed files with 6 additions and 4 deletions

View File

@ -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 * 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 * and then delete the selected item to recreate it as a recurrent one
*/ */
void void
recur_repeat_item(int item_nb) recur_repeat_item(void)
{ {
struct tm *lt; struct tm *lt;
time_t t; time_t t;
@ -598,11 +598,13 @@ recur_repeat_item(int item_nb)
char *mesg_older = char *mesg_older =
_("Sorry, the date you entered is older than the item start time."); _("Sorry, the date you entered is older than the item start time.");
int type = 0, freq = 0; int type = 0, freq = 0;
int item_nb;
struct day_item_s *p; struct day_item_s *p;
recur_apoint_llist_node_t *ra; recur_apoint_llist_node_t *ra;
struct recur_event_s *re; struct recur_event_s *re;
long until, date; long until, date;
item_nb = apoint_hilt();
p = day_get_item(item_nb); p = day_get_item(item_nb);
if (p->type != APPT && p->type != EVNT) { if (p->type != APPT && p->type != EVNT) {
status_mesg(wrong_type_1, wrong_type_2); status_mesg(wrong_type_1, wrong_type_2);

View File

@ -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 * Calcurse - text-based organizer
@ -90,7 +90,7 @@ unsigned recur_item_inday(long, struct days_s *, int,
int, long, long); int, long, long);
void recur_event_erase(long, unsigned, unsigned); void recur_event_erase(long, unsigned, unsigned);
void recur_apoint_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 days_s *recur_exc_scan(FILE *);
struct notify_app_s *recur_apoint_check_next(struct notify_app_s *, struct notify_app_s *recur_apoint_check_next(struct notify_app_s *,
long, long); long, long);