diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-11-09 18:14:23 +0100 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-11-14 11:08:14 +0100 |
commit | edad2f39db6d7ad4bcb41d04298b87c0de26fe1a (patch) | |
tree | cb361f92f5f4d33e863a2a8978d0b24e7c489d11 /src | |
parent | 41c33eeb44d1b1a4b476810757f7b91032950439 (diff) | |
download | calcurse-edad2f39db6d7ad4bcb41d04298b87c0de26fe1a.zip |
Removed unused parameter from apoint_sec2str()
This is no longer needed as of commit 2d89d336.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/apoint.c | 2 | ||||
-rw-r--r-- | src/args.c | 5 | ||||
-rw-r--r-- | src/calcurse.h | 2 | ||||
-rw-r--r-- | src/day.c | 6 |
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; @@ -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); @@ -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); |