aboutsummaryrefslogtreecommitdiffstats
path: root/src/day.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2007-08-15 15:37:10 +0000
committerFrederic Culot <calcurse@culot.org>2007-08-15 15:37:10 +0000
commit9fdc33133ce6770e5eecb591d480ed378a66f673 (patch)
tree2326df4ae47147f8e304fc216657e4d820c66b66 /src/day.c
parent406a0b2b2f17f3804a00901606563c5b5af7623f (diff)
downloadcalcurse-9fdc33133ce6770e5eecb591d480ed378a66f673.tar.gz
calcurse-9fdc33133ce6770e5eecb591d480ed378a66f673.zip
day_edit_item() updated to use apoint_hilt()
Diffstat (limited to 'src/day.c')
-rwxr-xr-xsrc/day.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/day.c b/src/day.c
index 0623104..c85661f 100755
--- a/src/day.c
+++ b/src/day.c
@@ -1,4 +1,4 @@
-/* $calcurse: day.c,v 1.28 2007/08/04 15:11:47 culot Exp $ */
+/* $calcurse: day.c,v 1.29 2007/08/15 15:37:10 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -450,7 +450,7 @@ day_edit_time(long time) {
/* Edit an already existing item. */
void
-day_edit_item(int item_num)
+day_edit_item(void)
{
#define STRT '1'
#define END '2'
@@ -467,6 +467,7 @@ day_edit_item(int item_num)
long date, newtime = 0;
int cancel, ch = 0, valid_date = 0, newfreq = 0, date_entered = 0;
int newmonth, newday, newyear;
+ int item_num;
unsigned hr, mn;
char *timestr, *typestr, *freqstr;
char *msg_norecur =
@@ -493,6 +494,7 @@ day_edit_item(int item_num)
char *mesg_until_1 =
_("Enter the new ending date: [mm/dd/yyyy] or '0'");
+ item_num = apoint_hilt();
p = day_get_item(item_num);
date = calendar_get_slctd_day_sec();