more win32 fixes
parent
c672db8351
commit
6d3e9814fa
|
@ -105,7 +105,7 @@ static void set_nolinger(int fd)
|
|||
struct linger lng;
|
||||
lng.l_onoff = 1;
|
||||
lng.l_linger = 0;
|
||||
setsockopt(fd, SOL_SOCKET, SO_LINGER, &lng, sizeof(lng));
|
||||
setsockopt(fd, SOL_SOCKET, SO_LINGER, (char *)&lng, sizeof(lng));
|
||||
}
|
||||
|
||||
static int set_bind_device(int fd, char *ifname)
|
||||
|
@ -193,7 +193,7 @@ static int rpc_write_to_socket(struct rpc_context *rpc)
|
|||
|
||||
total = pdu->outdata.size;
|
||||
|
||||
count = send(rpc->fd, pdu->outdata.data + pdu->written, total - pdu->written, 0);
|
||||
count = send(rpc->fd, pdu->outdata.data + pdu->written, (int)(total - pdu->written), 0);
|
||||
if (count == -1) {
|
||||
if (errno == EAGAIN || errno == EWOULDBLOCK) {
|
||||
return 0;
|
||||
|
|
|
@ -346,8 +346,8 @@ int rpc_nfs_write_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh,
|
|||
memset(&args, 0, sizeof(WRITE3args));
|
||||
args.file.data.data_len = fh->data.data_len;
|
||||
args.file.data.data_val = fh->data.data_val;
|
||||
args.offset = (count3)offset;
|
||||
args.count = count;
|
||||
args.offset = offset;
|
||||
args.count = (count3)count;
|
||||
args.stable = stable_how;
|
||||
args.data.data_len = (count3)count;
|
||||
args.data.data_val = buf;
|
||||
|
|
Loading…
Reference in New Issue