diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-06-05 19:52:13 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-06-05 19:52:13 +0000 |
commit | d1ffba1d7ce3979e8aefbdd0a26036fe974e5242 (patch) | |
tree | 543aed7e9fdb561e467b3acb3e898feff78c35ba /test/test-weof.c | |
parent | a43a1c2b237b2bcd0806635055a62f7406a16f2f (diff) | |
download | libevent-d1ffba1d7ce3979e8aefbdd0a26036fe974e5242.tar.gz |
Replace some read/write instances with send/recv to work properly on win32.
svn:r1324
Diffstat (limited to 'test/test-weof.c')
-rw-r--r-- | test/test-weof.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-weof.c b/test/test-weof.c index 73af086b..c5444f76 100644 --- a/test/test-weof.c +++ b/test/test-weof.c @@ -39,7 +39,7 @@ write_cb(int fd, short event, void *arg) const char *test = "test string"; int len; - len = write(fd, test, strlen(test) + 1); + len = send(fd, test, strlen(test) + 1, 0); printf("%s: write %d%s\n", __func__, len, len ? "" : " - means EOF"); |