- Timestamp:
- Jun 19, 2013 6:47:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pjlib-test/udp_echo_srv_ioqueue.c
r4108 r4537 50 50 if (bytes_received < 0) { 51 51 if (-bytes_received != recv_rec->last_err) { 52 recv_rec->last_err = -bytes_received;53 app_perror("...error receiving data", -bytes_received);52 recv_rec->last_err = (pj_status_t)-bytes_received; 53 app_perror("...error receiving data", recv_rec->last_err); 54 54 } 55 55 } else if (bytes_received == 0) { 56 56 /* note: previous error, or write callback */ 57 57 } else { 58 pj_atomic_add(total_bytes, bytes_received);58 pj_atomic_add(total_bytes, (pj_atomic_value_t)bytes_received); 59 59 60 60 if (!send_rec->is_pending) { … … 107 107 108 108 if (bytes_sent <= 0) { 109 pj_status_t rc = -bytes_sent;109 pj_status_t rc = (pj_status_t)-bytes_sent; 110 110 if (rc != send_rec->last_err) { 111 111 send_rec->last_err = rc;
Note: See TracChangeset
for help on using the changeset viewer.