mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-09 16:21:45 +00:00
Changed int -> SOCKET where appropriate, per Ben Currie
This commit is contained in:
1 parent
036b213b2b
commit
21786eec8e
1 file changed
+3
-3
+3
-3
@@ -189,7 +189,7 @@ typedef struct DIR {
|
|||||||
|
|
||||||
#ifndef HAVE_POLL
|
#ifndef HAVE_POLL
|
||||||
struct pollfd {
|
struct pollfd {
|
||||||
int fd;
|
SOCKET fd;
|
||||||
short events;
|
short events;
|
||||||
short revents;
|
short revents;
|
||||||
};
|
};
|
||||||
@@ -2549,8 +2549,8 @@ int mg_modify_passwords_file(const char *fname, const char *domain,
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int conn2(const char *host, int port, int use_ssl,
|
static SOCKET conn2(const char *host, int port, int use_ssl,
|
||||||
char *ebuf, size_t ebuf_len) {
|
char *ebuf, size_t ebuf_len) {
|
||||||
struct sockaddr_in sin;
|
struct sockaddr_in sin;
|
||||||
struct hostent *he;
|
struct hostent *he;
|
||||||
SOCKET sock = INVALID_SOCKET;
|
SOCKET sock = INVALID_SOCKET;
|
||||||
|
|||||||
Reference in new issue
Block a user