--- astman.c.orig 2003-11-22 16:54:09.000000000 -0600 +++ astman.c 2003-11-22 17:14:59.000000000 -0600 @@ -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;