summaryrefslogtreecommitdiff
path: root/utils/astman.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-11-23 22:14:32 +0000
committerMark Spencer <markster@digium.com>2003-11-23 22:14:32 +0000
commite0544c3eb57881bcc56b8f44f46e2dd3190c7be9 (patch)
tree3abbcfbfaf4182b264577213a5ce992548a32b40 /utils/astman.c
parentd547cbee4e46a3ced80ea80cbe9ca914929798e9 (diff)
Various warning cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1782 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'utils/astman.c')
-rwxr-xr-xutils/astman.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/astman.c b/utils/astman.c
index a9dba8d61..f7ce241ac 100755
--- a/utils/astman.c
+++ b/utils/astman.c
@@ -427,7 +427,7 @@ 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;
@@ -550,8 +550,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];
@@ -583,7 +583,7 @@ static int login(char *hostname)
session.sin.sin_port = htons(DEFAULT_MANAGER_PORT);
memcpy(&session.sin.sin_addr, hp->h_addr, sizeof(session.sin.sin_addr));
- if (connect(session.fd, &session.sin, sizeof(session.sin))) {
+ if (connect(session.fd,(struct sockaddr*)&session.sin, sizeof(session.sin))) {
snprintf(tmp, sizeof(tmp), "%s failed: %s\n", hostname, strerror(errno));
show_message("Connect Failed", tmp);
return -1;