From 2762242f30d0d046a80abe41fd78415052bbe95f Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sun, 6 Mar 2016 12:26:18 +0000 Subject: Silence a couple of compiler warnings --- win32/mingw.c | 3 ++- win32/net.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'win32') diff --git a/win32/mingw.c b/win32/mingw.c index 01e7f072a..ebdcdee26 100644 --- a/win32/mingw.c +++ b/win32/mingw.c @@ -913,7 +913,8 @@ int mingw_access(const char *name, int mode) { int ret; struct stat s; - int fd, n, offset, sig; + int fd, n, sig; + unsigned int offset; unsigned char buf[1024]; /* Windows can only handle test for existence, read or write */ diff --git a/win32/net.c b/win32/net.c index a44d91abb..05df6d20e 100644 --- a/win32/net.c +++ b/win32/net.c @@ -47,7 +47,7 @@ int mingw_socket(int domain, int type, int protocol) } #undef connect -int mingw_connect(int sockfd, struct sockaddr *sa, size_t sz) +int mingw_connect(int sockfd, const struct sockaddr *sa, size_t sz) { SOCKET s = (SOCKET)_get_osfhandle(sockfd); return connect(s, sa, sz); -- cgit v1.2.3-55-g6feb