]> git.deb.at Git - pkg/abook.git/commitdiff
added assert and consts
authorJaakko Heinonen <jheinonen@users.sourceforge.net>
Sat, 22 Nov 2003 15:52:16 +0000 (15:52 +0000)
committerJaakko Heinonen <jheinonen@users.sourceforge.net>
Sat, 22 Nov 2003 15:52:16 +0000 (15:52 +0000)
edit.c

diff --git a/edit.c b/edit.c
index 12028f8722d1191e4cc8bb91f6672e608afa0300..8d39660156e90ca5ce884e8ba7b1080019e9f6ce 100644 (file)
--- 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);
        }
 }