summaryrefslogtreecommitdiff
path: root/pjlib/src/pjlib-test/ioq_unreg.c
diff options
context:
space:
mode:
Diffstat (limited to 'pjlib/src/pjlib-test/ioq_unreg.c')
-rw-r--r--pjlib/src/pjlib-test/ioq_unreg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pjlib/src/pjlib-test/ioq_unreg.c b/pjlib/src/pjlib-test/ioq_unreg.c
index beb4e33e..d40c1719 100644
--- a/pjlib/src/pjlib-test/ioq_unreg.c
+++ b/pjlib/src/pjlib-test/ioq_unreg.c
@@ -58,7 +58,7 @@ struct sock_data
char *buffer;
pj_size_t bufsize;
pj_bool_t unregistered;
- unsigned received;
+ pj_ssize_t received;
} sock_data;
static void on_read_complete(pj_ioqueue_key_t *key,
@@ -81,7 +81,7 @@ static void on_read_complete(pj_ioqueue_key_t *key,
if (bytes_read < 0) {
if (-bytes_read != PJ_STATUS_FROM_OS(PJ_BLOCKING_ERROR_VAL))
- app_perror("ioqueue reported recv error", -bytes_read);
+ app_perror("ioqueue reported recv error", (pj_status_t)-bytes_read);
} else {
sock_data.received += bytes_read;
}