From: Jaakko Heinonen Date: Sat, 22 Nov 2003 15:52:16 +0000 (+0000) Subject: added assert and consts X-Git-Tag: upstream/0.6.1~2^2~228 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=35c85955699b227956e399a76b4a78ab48aa0c18;p=pkg%2Fabook.git added assert and consts --- diff --git a/edit.c b/edit.c index 12028f8..8d39660 100644 --- a/edit.c +++ b/edit.c @@ -33,11 +33,11 @@ extern int items; WINDOW *editw; static void -editor_tab(int tab) +editor_tab(const int tab) { int i; - int spacing = 12; - char *tab_names[] = { + const int spacing = 12; + const char *tab_names[] = { "CONTACT", "ADDRESS", " PHONE ", @@ -371,6 +371,8 @@ edit_undo(int item, int mode) my_free(backup); } break; + default: + assert(0); } }