diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-04-06 23:21:18 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-04-06 23:23:58 +0200 |
commit | 1c442e6aefd8855cdeec776b0e4e604edf585884 (patch) | |
tree | 18b7a62118ce65473d3bd192b2c86a1954f42178 /src/apoint.c | |
parent | d0b0ed3c202c3212a65ba628026a53d9663fc2d7 (diff) | |
download | calcurse-1c442e6aefd8855cdeec776b0e4e604edf585884.zip |
Miscellaneous small code cleanups
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/apoint.c')
-rw-r--r-- | src/apoint.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/apoint.c b/src/apoint.c index 98e8e5e..60a7c19 100644 --- a/src/apoint.c +++ b/src/apoint.c @@ -264,7 +264,6 @@ apoint_add (void) void apoint_delete (unsigned *nb_events, unsigned *nb_apoints) { - char *choices = "[y/n] "; const char *del_app_str = _("Do you really want to delete this item ?"); long date; int nb_items = *nb_apoints + *nb_events; @@ -277,7 +276,7 @@ apoint_delete (unsigned *nb_events, unsigned *nb_apoints) if (conf.confirm_delete) { - status_mesg (del_app_str, choices); + status_mesg_yesno (del_app_str); if (wgetch (win[STA].p) != 'y') { wins_erase_status_bar (); @@ -375,11 +374,7 @@ apoint_paste (unsigned *nb_events, unsigned *nb_apoints, int cut_item_type) unsigned apoint_inday (struct apoint *i, long start) { - if (i->start <= start + DAYINSEC && i->start + i->dur > start) - { - return 1; - } - return 0; + return (i->start <= start + DAYINSEC && i->start + i->dur > start); } void |