aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2016-03-06 12:26:18 +0000
committerRon Yorston <rmy@pobox.com>2016-03-06 12:26:18 +0000
commit2762242f30d0d046a80abe41fd78415052bbe95f (patch)
tree62da74833d38b3cc3a1197e481a20b0c736d1779
parent23db91691674e8621870c382581999a61eb0d0bf (diff)
downloadbusybox-w32-2762242f30d0d046a80abe41fd78415052bbe95f.tar.gz
busybox-w32-2762242f30d0d046a80abe41fd78415052bbe95f.tar.bz2
busybox-w32-2762242f30d0d046a80abe41fd78415052bbe95f.zip
Silence a couple of compiler warnings
-rw-r--r--include/mingw.h2
-rw-r--r--win32/mingw.c3
-rw-r--r--win32/net.c2
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, ...);
234#define SHUT_WR SD_SEND 234#define SHUT_WR SD_SEND
235 235
236int mingw_socket(int domain, int type, int protocol); 236int mingw_socket(int domain, int type, int protocol);
237int mingw_connect(int sockfd, struct sockaddr *sa, size_t sz); 237int mingw_connect(int sockfd, const struct sockaddr *sa, size_t sz);
238int mingw_bind(int sockfd, struct sockaddr *sa, size_t sz); 238int mingw_bind(int sockfd, struct sockaddr *sa, size_t sz);
239int mingw_setsockopt(int sockfd, int lvl, int optname, void *optval, int optlen); 239int mingw_setsockopt(int sockfd, int lvl, int optname, void *optval, int optlen);
240int mingw_shutdown(int sockfd, int how); 240int 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)
913{ 913{
914 int ret; 914 int ret;
915 struct stat s; 915 struct stat s;
916 int fd, n, offset, sig; 916 int fd, n, sig;
917 unsigned int offset;
917 unsigned char buf[1024]; 918 unsigned char buf[1024];
918 919
919 /* Windows can only handle test for existence, read or write */ 920 /* 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)
47} 47}
48 48
49#undef connect 49#undef connect
50int mingw_connect(int sockfd, struct sockaddr *sa, size_t sz) 50int mingw_connect(int sockfd, const struct sockaddr *sa, size_t sz)
51{ 51{
52 SOCKET s = (SOCKET)_get_osfhandle(sockfd); 52 SOCKET s = (SOCKET)_get_osfhandle(sockfd);
53 return connect(s, sa, sz); 53 return connect(s, sa, sz);