aboutsummaryrefslogtreecommitdiff
path: root/win32
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 /win32
parent23db91691674e8621870c382581999a61eb0d0bf (diff)
downloadbusybox-w32-2762242f30d0d046a80abe41fd78415052bbe95f.tar.gz
busybox-w32-2762242f30d0d046a80abe41fd78415052bbe95f.tar.bz2
busybox-w32-2762242f30d0d046a80abe41fd78415052bbe95f.zip
Silence a couple of compiler warnings
Diffstat (limited to 'win32')
-rw-r--r--win32/mingw.c3
-rw-r--r--win32/net.c2
2 files changed, 3 insertions, 2 deletions
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);