From e0544c3eb57881bcc56b8f44f46e2dd3190c7be9 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Sun, 23 Nov 2003 22:14:32 +0000 Subject: Various warning cleanups git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1782 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- utils/astman.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'utils/astman.c') 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; -- cgit v1.2.3