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 --- include/mingw.h | 2 +- win32/mingw.c | 3 ++- win32/net.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/mingw.h b/include/mingw.h index 196356288..b32ee43b0 100644 --- a/include/mingw.h +++ b/include/mingw.h @@ -234,7 +234,7 @@ int ioctl(int fd, int code, ...); #define SHUT_WR SD_SEND int mingw_socket(int domain, int type, int protocol); -int mingw_connect(int sockfd, struct sockaddr *sa, size_t sz); +int mingw_connect(int sockfd, const struct sockaddr *sa, size_t sz); int mingw_bind(int sockfd, struct sockaddr *sa, size_t sz); int mingw_setsockopt(int sockfd, int lvl, int optname, void *optval, int optlen); int mingw_shutdown(int sockfd, int how); 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