From: Miroslav Lichvar Date: Wed, 19 Mar 2008 15:41:50 +0000 (+0100) Subject: fix newtWinEntry definition X-Git-Tag: r0-52-9~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4275c668779da46184481855ca8a756d381dde9;p=thirdparty%2Fnewt.git fix newtWinEntry definition --- diff --git a/newt.h b/newt.h index 88f2dd8..4fcd047 100644 --- 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; }; diff --git a/windows.c b/windows.c index b513c1c..533504d 100644 --- 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); }