Permalink
Browse files

Fix some small win32 build issues on trunk.

git-svn-id: http://levent.svn.sourceforge.net/svnroot/levent/trunk/libevent@1306 ce677c24-8c1a-0410-9497-a30ef3a96221
  • Loading branch information...
nickm
nickm committed May 22, 2009
1 parent 0c5ad92 commit 0004d7ea067301ad56dd0172934ce2685bbe6cd0
Showing with 3 additions and 4 deletions.
  1. +1 −2 buffer_iocp.c
  2. +1 −1 event_iocp.c
  3. +1 −1 signal.c
View
@@ -117,7 +117,6 @@ read_completed(struct event_overlapped *eo, uintptr_t _, ssize_t nBytes)
struct evbuffer_overlapped *buf = buf_o->buf;
struct evbuffer *evbuf = &buf->buffer;
- struct evbuffer_chain *chain = buf_o->first_pinned;
struct evbuffer_iovec iov[2];
int n_vec;
@@ -255,7 +254,7 @@ evbuffer_launch_read(struct evbuffer *buf, size_t at_most)
struct evbuffer_chain *chain=NULL;
DWORD bytesRead;
DWORD flags = 0;
- struct evbuffer_iovec vecs[MAX_VECS];
+ struct evbuffer_iovec vecs[MAX_WSABUFS];
if (!buf_o)
return -1;
View
@@ -202,7 +202,7 @@ event_base_get_iocp(struct event_base *base)
#ifdef WIN32
return base->iocp;
#else
- return NULL
+ return NULL;
#endif
}
View
@@ -121,7 +121,7 @@ evsig_init(struct event_base *base)
#ifdef WIN32
/* Make this nonfatal on win32, where sometimes people
have localhost firewalled. */
- event_sock_warn(1, -1, "%s: socketpair", __func__);
+ event_sock_warn(-1, "%s: socketpair", __func__);
#else
event_sock_err(1, -1, "%s: socketpair", __func__);
#endif

0 comments on commit 0004d7e

Please sign in to comment.