]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
fix newtWinEntry definition
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 19 Mar 2008 15:41:50 +0000 (16:41 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 21 Mar 2008 11:58:40 +0000 (12:58 +0100)
newt.h
windows.c

diff --git a/newt.h b/newt.h
index 88f2dd8d29880aa213f714c47a051388d94c5646..4fcd047859aef679a3bdbcf919097519d6c2b660 100644 (file)
--- a/newt.h
+++ b/newt.h
@@ -369,7 +369,7 @@ int newtWinMenu(char * title, char * text, int suggestedWidth, int flexDown,
 
 struct newtWinEntry {
     char * text;
-    const char ** value;               /* may be initialized to set default */
+    char ** value;             /* may be initialized to set default */
     int flags;
 };
 
index b513c1cae537e3eb2e0d6d18221bca3fffa4b881..533504d0a1b5e824bfca23584244aa3799e3f4f0 100644 (file)
--- a/windows.c
+++ b/windows.c
@@ -242,7 +242,7 @@ int newtWinEntries(char * title, char * text, int suggestedWidth, int flexDown,
        newtGridSetField(subgrid, 1, i, NEWT_GRID_COMPONENT,
                         newtEntry(-1, -1, items[i].value ? 
                                    *items[i].value : NULL, dataWidth,
-                                   items[i].value, items[i].flags),
+                                   (const char **)items[i].value, items[i].flags),
                         1, 0, 0, 0, 0, 0);
     }