From 1c442e6aefd8855cdeec776b0e4e604edf585884 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 6 Apr 2012 23:21:18 +0200 Subject: Miscellaneous small code cleanups Signed-off-by: Lukas Fleischer --- src/apoint.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/apoint.c') 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 -- cgit v1.2.3-54-g00ecf