diff options
author | Frederic Culot <calcurse@culot.org> | 2007-07-29 20:59:09 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2007-07-29 20:59:09 +0000 |
commit | 2767b1f0e9cdb4193f3682ad94bd47de4491e925 (patch) | |
tree | 295eb62c1d0c3c70d0e938f185cee3c4efac8906 /src/utils.c | |
parent | fa87c918480a3ef6449a4d2decc20e455c133477 (diff) | |
download | calcurse-2767b1f0e9cdb4193f3682ad94bd47de4491e925.zip |
compiler warnings fixed
Diffstat (limited to 'src/utils.c')
-rwxr-xr-x | src/utils.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/utils.c b/src/utils.c index 07a6175..9e18ef7 100755 --- a/src/utils.c +++ b/src/utils.c @@ -1,4 +1,4 @@ -/* $calcurse: utils.c,v 1.33 2007/07/28 13:11:43 culot Exp $ */ +/* $calcurse: utils.c,v 1.34 2007/07/29 20:59:09 culot Exp $ */ /* * Calcurse - text-based organizer @@ -743,17 +743,21 @@ void reset_status_page(void) void other_status_page(int panel) { int nb_item, max_page; + char *error = _("FATAL ERROR in other_status_page: unknown panel\n"); switch (panel) { - case 0: + case CALENDAR: nb_item = NB_CAL_CMDS; break; - case 1: + case APPOINTMENT: nb_item = NB_APP_CMDS; break; - case 2: + case TODO: nb_item = NB_TOD_CMDS; break; + default: + fputs(error, stderr); + exit(EXIT_FAILURE); } max_page = ceil( nb_item / (2*CMDS_PER_LINE) ) + 1; if (status_page < max_page) { |