summaryrefslogtreecommitdiff
path: root/src/day.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2013-02-01 18:42:45 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2013-02-01 18:42:45 +0100
commit9a6df45c4b44ca2a9559add78c1bfe692ec485b8 (patch)
tree6b0cb64463cbe97f61228b243ce4dfb908115dd9 /src/day.c
parent6e733b98d023f3984be8c9d3764cd4fe1720a45f (diff)
downloadcalcurse-9a6df45c4b44ca2a9559add78c1bfe692ec485b8.zip
day_process_storage(): Remove redundant parameter
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/day.c')
-rw-r--r--src/day.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/day.c b/src/day.c
index df95ccf..74e6db0 100644
--- a/src/day.c
+++ b/src/day.c
@@ -360,12 +360,12 @@ day_store_items(long date, unsigned *pnb_events, unsigned *pnb_apoints,
* those items in a pad. If selected day is null, then store items for current
* day. This is useful to speed up the appointment panel update.
*/
-struct day_items_nb *day_process_storage(struct date *slctd_date,
- unsigned day_changed,
- struct day_items_nb *inday)
+struct day_items_nb day_process_storage(struct date *slctd_date,
+ unsigned day_changed)
{
long date;
struct date day;
+ struct day_items_nb inday;
if (slctd_date)
day = *slctd_date;
@@ -379,8 +379,8 @@ struct day_items_nb *day_process_storage(struct date *slctd_date,
delwin(apad.ptrwin);
/* Store the events and appointments (recursive and normal items). */
- day_store_items(date, &inday->nb_events, &inday->nb_apoints, NULL);
- apad.length = (inday->nb_events + 1 + 3 * inday->nb_apoints);
+ day_store_items(date, &inday.nb_events, &inday.nb_apoints, NULL);
+ apad.length = (inday.nb_events + 1 + 3 * inday.nb_apoints);
/* Create the new pad with its new length. */
if (day_changed)