mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Various warning cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1782 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user