aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental
diff options
context:
space:
mode:
Diffstat (limited to 'src/supplemental')
-rw-r--r--src/supplemental/http/http_conn.c6
-rw-r--r--src/supplemental/tls/mbedtls/tls.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/src/supplemental/http/http_conn.c b/src/supplemental/http/http_conn.c
index 484d2242..6a72a731 100644
--- a/src/supplemental/http/http_conn.c
+++ b/src/supplemental/http/http_conn.c
@@ -145,7 +145,7 @@ http_rd_buf(nni_http_conn *conn, nni_aio *aio)
int rv;
bool raw = false;
nni_iov *iov;
- int niov;
+ unsigned niov;
rbuf += conn->rd_get;
@@ -274,7 +274,7 @@ http_rd_cb(void *arg)
nni_aio * uaio;
size_t cnt;
int rv;
- int niov;
+ unsigned niov;
nni_iov * iov;
nni_mtx_lock(&conn->mtx);
@@ -377,7 +377,7 @@ http_wr_start(nni_http_conn *conn)
{
nni_aio *aio;
nni_iov *iov;
- int niov;
+ unsigned niov;
if ((aio = conn->wr_uaio) == NULL) {
if ((aio = nni_list_first(&conn->wrq)) == NULL) {
diff --git a/src/supplemental/tls/mbedtls/tls.c b/src/supplemental/tls/mbedtls/tls.c
index cb0a4bbf..ca6c716c 100644
--- a/src/supplemental/tls/mbedtls/tls.c
+++ b/src/supplemental/tls/mbedtls/tls.c
@@ -642,11 +642,11 @@ nni_tls_do_send(nni_tls *tp)
uint8_t *buf = NULL;
size_t len = 0;
nni_iov *iov;
- int niov;
+ unsigned niov;
nni_aio_get_iov(aio, &niov, &iov);
- for (int i = 0; i < niov; i++) {
+ for (unsigned i = 0; i < niov; i++) {
if (iov[i].iov_len != 0) {
buf = iov[i].iov_buf;
len = iov[i].iov_len;
@@ -688,11 +688,11 @@ nni_tls_do_recv(nni_tls *tp)
uint8_t *buf = NULL;
size_t len = 0;
nni_iov *iov;
- int niov;
+ unsigned niov;
nni_aio_get_iov(aio, &niov, &iov);
- for (int i = 0; i < niov; i++) {
+ for (unsigned i = 0; i < niov; i++) {
if (iov[i].iov_len != 0) {
buf = iov[i].iov_buf;
len = iov[i].iov_len;