Skip to content

Commit

Permalink
- fast-reload, fix warnings for call types in windows compile.
Browse files Browse the repository at this point in the history
  • Loading branch information
wcawijngaards committed Jul 23, 2024
1 parent 9973990 commit ce87645
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions daemon/remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -6139,7 +6139,7 @@ create_socketpair(int* pair, struct ub_randstate* rand)
return 0;
}
accaddrlen = (socklen_t)sizeof(accaddr);
pair[0] = accept(lst, &accaddr, &accaddrlen);
pair[0] = accept(lst, (struct sockaddr*)&accaddr, &accaddrlen);
if(pair[0] == -1) {
log_err("create socketpair: accept: %s", sock_strerror(errno));
sock_close(lst);
Expand Down Expand Up @@ -6219,7 +6219,8 @@ create_socketpair(int* pair, struct ub_randstate* rand)
pair[1] = -1;
return 0;
}
ret = send(pair[1], nonce+bcount, sizeof(nonce)-bcount, 0);
ret = send(pair[1], (void*)(nonce+bcount),
sizeof(nonce)-bcount, 0);
if(ret == -1) {
if(
#ifndef USE_WINSOCK
Expand Down Expand Up @@ -6277,7 +6278,8 @@ create_socketpair(int* pair, struct ub_randstate* rand)
pair[1] = -1;
return 0;
}
ret = recv(pair[0], recvnonce+bcount, sizeof(nonce)-bcount, 0);
ret = recv(pair[0], (void*)(recvnonce+bcount),
sizeof(nonce)-bcount, 0);
if(ret == -1) {
if(
#ifndef USE_WINSOCK
Expand Down

0 comments on commit ce87645

Please sign in to comment.