diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-11-04 15:48:36 +0100 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-11-14 11:08:14 +0100 |
commit | 41c33eeb44d1b1a4b476810757f7b91032950439 (patch) | |
tree | 2f38da227b9f554d0eab35fdb7c8cfd18e9d88d2 /src/apoint.c | |
parent | 14b6ae79a25106501a30693889b1c03abd56c8c1 (diff) | |
download | calcurse-41c33eeb44d1b1a4b476810757f7b91032950439.zip |
Use a global configuration variable
This is one of the few valid use cases for a global variable. No need to
make it pseudo-local and pass it from one function to another.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/apoint.c')
-rw-r--r-- | src/apoint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/apoint.c b/src/apoint.c index 1ca6639..59c49ec 100644 --- a/src/apoint.c +++ b/src/apoint.c @@ -262,7 +262,7 @@ apoint_add (void) /* Delete an item from the appointment list. */ void -apoint_delete (struct conf *conf, unsigned *nb_events, unsigned *nb_apoints) +apoint_delete (unsigned *nb_events, unsigned *nb_apoints) { char *choices = "[y/n] "; char *del_app_str = _("Do you really want to delete this item ?"); @@ -275,7 +275,7 @@ apoint_delete (struct conf *conf, unsigned *nb_events, unsigned *nb_apoints) date = calendar_get_slctd_day_sec (); - if (conf->confirm_delete) + if (conf.confirm_delete) { status_mesg (del_app_str, choices); answer = wgetch (win[STA].p); |