summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/apoint.c2
-rw-r--r--src/args.c5
-rw-r--r--src/calcurse.h2
-rw-r--r--src/day.c6
4 files changed, 7 insertions, 8 deletions
diff --git a/src/apoint.c b/src/apoint.c
index 59c49ec..31608d1 100644
--- a/src/apoint.c
+++ b/src/apoint.c
@@ -389,7 +389,7 @@ apoint_inday (struct apoint *i, long start)
}
void
-apoint_sec2str (struct apoint *o, int type, long day, char *start, char *end)
+apoint_sec2str (struct apoint *o, long day, char *start, char *end)
{
struct tm *lt;
time_t t;
diff --git a/src/args.c b/src/args.c
index 186dd13..3c5831a 100644
--- a/src/args.c
+++ b/src/args.c
@@ -468,7 +468,7 @@ app_arg (int add_line, struct date *day, long date, int print_note,
arg_print_date (today);
print_date = 0;
}
- apoint_sec2str (apt, APPT, today, apoint_start_time, apoint_end_time);
+ apoint_sec2str (apt, today, apoint_start_time, apoint_end_time);
fputs (" - ", stdout);
fputs (apoint_start_time, stdout);
fputs (" -> ", stdout);
@@ -494,8 +494,7 @@ app_arg (int add_line, struct date *day, long date, int print_note,
print_date = 0;
}
apt = apoint_recur_s2apoint_s (ra);
- apoint_sec2str (apt, RECUR_APPT, today, apoint_start_time,
- apoint_end_time);
+ apoint_sec2str (apt, today, apoint_start_time, apoint_end_time);
mem_free (apt->mesg);
mem_free (apt);
fputs (" - ", stdout);
diff --git a/src/calcurse.h b/src/calcurse.h
index f7ad0dd..687c118 100644
--- a/src/calcurse.h
+++ b/src/calcurse.h
@@ -588,7 +588,7 @@ void apoint_delete (unsigned *, unsigned *);
int apoint_cut (unsigned *, unsigned *);
void apoint_paste (unsigned *, unsigned *, int);
unsigned apoint_inday (struct apoint *, long);
-void apoint_sec2str (struct apoint *, int, long, char *, char *);
+void apoint_sec2str (struct apoint *, long, char *, char *);
void apoint_write (struct apoint *, FILE *);
struct apoint *apoint_scan (FILE *, struct tm, struct tm, char, char *);
struct apoint *apoint_get (long, int);
diff --git a/src/day.c b/src/day.c
index 73c8ada..58539d7 100644
--- a/src/day.c
+++ b/src/day.c
@@ -327,7 +327,7 @@ display_item_date (int incolor, struct apoint *i, int type, long date,
int recur = 0;
win = apad.ptrwin;
- apoint_sec2str (i, type, date, a_st, a_end);
+ apoint_sec2str (i, date, a_st, a_end);
if (type == RECUR_EVNT || type == RECUR_APPT)
recur = 1;
if (incolor == 0)
@@ -440,8 +440,8 @@ day_write_pad (long date, int width, int length, int incolor)
{
day_saved_item.type = day->type;
day_saved_item.mesg = day->mesg;
- apoint_sec2str (&a, day->type, date,
- day_saved_item.start, day_saved_item.end);
+ apoint_sec2str (&a, date, day_saved_item.start,
+ day_saved_item.end);
}
display_item_date (item_number - incolor, &a, day->type,
date, line + 1, x_pos);