Fix compile error on Windows
authorJoseph C. Lehner <joseph.c.lehner@gmail.com>
Thu, 4 Feb 2016 08:04:25 +0000 (10:04 +0200)
committerJoseph C. Lehner <joseph.c.lehner@gmail.com>
Thu, 4 Feb 2016 08:04:25 +0000 (10:04 +0200)
ethsock.c

index 72c2940ae531a03e78597241fbf960dc494c14f8..c11f13d145a5709f41a9207df3be073182b6f4ce 100644 (file)
--- a/ethsock.c
+++ b/ethsock.c
@@ -333,7 +333,7 @@ ssize_t ethsock_recv(struct ethsock *sock, void *buf, size_t len)
                if (ret == WAIT_TIMEOUT) {
                        return 0;
                } else if (ret != WAIT_OBJECT_0) {
-                       win_perror("WaitForSingleObject", ret);
+                       win_perror2("WaitForSingleObject", ret);
                        return -1;
                }
        }