[Asterisk-cvs] asterisk/utils astman.c,1.14,1.15
russell at lists.digium.com
russell at lists.digium.com
Thu May 26 07:57:53 CDT 2005
Update of /usr/cvsroot/asterisk/utils
In directory mongoose.digium.com:/tmp/cvs-serv5584/utils
Modified Files:
astman.c
Log Message:
fix usage of const char (bug #4388)
Index: astman.c
===================================================================
RCS file: /usr/cvsroot/asterisk/utils/astman.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- astman.c 24 May 2005 10:22:26 -0000 1.14
+++ astman.c 26 May 2005 12:01:55 -0000 1.15
@@ -430,13 +430,13 @@
newtComponent ok;
newtComponent cancel;
newtComponent inpfield;
- const char *input;
+ char *input;
int res = -1;
struct newtExitStruct es;
newtCenteredWindow(60,7, msg);
- inpfield = newtEntry(5, 2, "", 50, &input, 0);
+ inpfield = newtEntry(5, 2, "", 50, (const char **)&input, 0);
ok = newtButton(22, 3, "OK");
cancel = newtButton(32, 3, "Cancel");
form = newtForm(NULL, NULL, 0);
@@ -553,8 +553,8 @@
newtComponent label;
newtComponent ulabel;
newtComponent plabel;
- const char *user;
- const char *pass;
+ char *user;
+ char *pass;
struct message *m;
struct newtExitStruct es;
char tmp[55];
@@ -603,8 +603,8 @@
ulabel = newtLabel(4,2,"Username:");
plabel = newtLabel(4,3,"Password:");
- username = newtEntry(14, 2, "", 20, &user, 0);
- password = newtEntry(14, 3, "", 20, &pass, NEWT_FLAG_HIDDEN);
+ username = newtEntry(14, 2, "", 20, (const char **)&user, 0);
+ password = newtEntry(14, 3, "", 20, (const char **)&pass, NEWT_FLAG_HIDDEN);
form = newtForm(NULL, NULL, 0);
newtFormAddComponents(form, username, password, login, cancel, label, ulabel, plabel,NULL);
More information about the svn-commits
mailing list