diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-05-26 12:01:55 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-05-26 12:01:55 +0000 |
commit | 301ac352cdb820e54128d44b3787df4b550e6db1 (patch) | |
tree | f91b334edd67da25c9ac02428eec6ef503e308c5 /utils/astman.c | |
parent | 32019cad87c2a8280d567fb1ce42daf22f1e8ac8 (diff) |
fix usage of const char (bug #4388)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5770 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'utils/astman.c')
-rwxr-xr-x | utils/astman.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/astman.c b/utils/astman.c index 8e711ea1d..68313d992 100755 --- a/utils/astman.c +++ b/utils/astman.c @@ -430,13 +430,13 @@ static int get_user_input(char *msg, char *buf, int buflen) 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 @@ static int login(char *hostname) 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 @@ static int login(char *hostname) 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); |