diff options
Diffstat (limited to 'win32')
-rw-r--r-- | win32/mingw.c | 3 | ||||
-rw-r--r-- | win32/net.c | 2 |
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 |
50 | int mingw_connect(int sockfd, struct sockaddr *sa, size_t sz) | 50 | int 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); |