diff options
Diffstat (limited to 'pjlib/src/pjlib-test/ioq_udp.c')
-rw-r--r-- | pjlib/src/pjlib-test/ioq_udp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pjlib/src/pjlib-test/ioq_udp.c b/pjlib/src/pjlib-test/ioq_udp.c index 66c856c9..86a01c7e 100644 --- a/pjlib/src/pjlib-test/ioq_udp.c +++ b/pjlib/src/pjlib-test/ioq_udp.c @@ -115,7 +115,7 @@ static pj_ioqueue_callback test_cb = &on_ioqueue_connect, }; -#ifdef PJ_WIN32 +#if defined(PJ_WIN32) || defined(PJ_WIN64) # define S_ADDR S_un.S_addr #else # define S_ADDR s_addr @@ -137,7 +137,8 @@ static int compliance_test(pj_bool_t allow_concur) pj_ioqueue_key_t *skey = NULL, *ckey = NULL; pj_ioqueue_op_key_t read_op, write_op; int bufsize = BUF_MIN_SIZE; - pj_ssize_t bytes, status = -1; + pj_ssize_t bytes; + int status = -1; pj_str_t temp; pj_bool_t send_pending, recv_pending; pj_status_t rc; @@ -768,7 +769,7 @@ static int bench_test(pj_bool_t allow_concur, int bufsize, } if (rc == PJ_SUCCESS) { if (bytes < 0) { - app_perror("...error: pj_ioqueue_sendto()", -bytes); + app_perror("...error: pj_ioqueue_sendto()",(pj_status_t)-bytes); break; } } |