[Asterisk-cvs] asterisk/astman astman.c,1.5,1.6
markster at lists.digium.com
markster at lists.digium.com
Sun Nov 23 15:48:11 CST 2003
Update of /usr/cvsroot/asterisk/astman
In directory mongoose.digium.com:/tmp/cvs-serv24780/astman
Modified Files:
astman.c
Log Message:
Various warning cleanups
Index: astman.c
===================================================================
RCS file: /usr/cvsroot/asterisk/astman/astman.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- astman.c 19 Sep 2003 01:20:22 -0000 1.5
+++ astman.c 23 Nov 2003 22:14:32 -0000 1.6
@@ -427,7 +427,7 @@
newtComponent ok;
newtComponent cancel;
newtComponent inpfield;
- const char *input;
+ char *input;
int res = -1;
struct newtExitStruct es;
@@ -550,8 +550,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];
@@ -583,7 +583,7 @@
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;
More information about the svn-commits
mailing list