diff options
author | Frederic Culot <calcurse@culot.org> | 2008-12-12 20:44:50 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2008-12-12 20:44:50 +0000 |
commit | 53db22a380ec76a684fd5000d216350aaa795278 (patch) | |
tree | 8902b4442302bfd8f5d2be0385357705e629be62 /src/day.c | |
parent | bd286546f42bbeb568e2a003882e78bf4f1ae831 (diff) | |
download | calcurse-53db22a380ec76a684fd5000d216350aaa795278.tar.gz calcurse-53db22a380ec76a684fd5000d216350aaa795278.zip |
code cleanup
Diffstat (limited to 'src/day.c')
-rwxr-xr-x | src/day.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $calcurse: day.c,v 1.40 2008/12/08 19:17:07 culot Exp $ */ +/* $calcurse: day.c,v 1.41 2008/12/12 20:44:50 culot Exp $ */ /* * Calcurse - text-based organizer @@ -454,15 +454,13 @@ day_write_pad (long date, int width, int length, int incolor) void day_popup_item (void) { - char *error = _("FATAL ERROR in day_popup_item: unknown item type\n"); - if (day_saved_item->type == EVNT || day_saved_item->type == RECUR_EVNT) item_in_popup (NULL, NULL, day_saved_item->mesg, _("Event :")); else if (day_saved_item->type == APPT || day_saved_item->type == RECUR_APPT) item_in_popup (day_saved_item->start, day_saved_item->end, day_saved_item->mesg, _("Appointment :")); else - ierror (error, IERROR_FATAL); + EXIT (_("unknown item type")); /* NOTREACHED */ } |