Fixed several compiler warnings

This commit is contained in:
Michiel Broek
2003-07-06 11:49:01 +00:00
parent fec08e6d2f
commit 42b0fd381b
7 changed files with 14 additions and 11 deletions

View File

@@ -225,7 +225,7 @@ int socket_connect(char *user)
clntaddr.sun_family = AF_UNIX;
strcpy(clntaddr.sun_path, cpath);
if (bind(s, &clntaddr, sizeof(clntaddr)) < 0) {
if (bind(s, (struct sockaddr *)&clntaddr, sizeof(clntaddr)) < 0) {
close(s);
perror("mbmon");
printf("Can't bind socket %s\n", cpath);