diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-16 00:43:03 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-16 00:43:03 -0800 |
| commit | 39dbff5615631522d3ef98b83141957038502c0d (patch) | |
| tree | 89becbf88ebb79df9c9202450acd476bd790bde0 /src/core/message.c | |
| parent | f71209a0b429cddcd44f1f2473c49e986c9b4be7 (diff) | |
| download | nng-39dbff5615631522d3ef98b83141957038502c0d.tar.gz nng-39dbff5615631522d3ef98b83141957038502c0d.tar.bz2 nng-39dbff5615631522d3ef98b83141957038502c0d.zip | |
Various complaints found in AppVeyor build.
Diffstat (limited to 'src/core/message.c')
| -rw-r--r-- | src/core/message.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/message.c b/src/core/message.c index 4c666955..778e7dfc 100644 --- a/src/core/message.c +++ b/src/core/message.c @@ -41,7 +41,7 @@ typedef struct { static void nni_chunk_dump(const nni_chunk *chunk, char *prefix) { - int i, j; + size_t i, j; uint8_t x; char buf[128]; @@ -59,7 +59,7 @@ nni_chunk_dump(const nni_chunk *chunk, char *prefix) nni_println(buf); j = 0; } - snprintf(buf, sizeof (buf), " %4x: ", i); + snprintf(buf, sizeof (buf), " %4x: ", (unsigned) i); j += strlen(buf); } buf[j++] = ' '; @@ -413,7 +413,7 @@ nni_msg_getopt(nni_msg *m, int opt, void *val, size_t *szp) NNI_LIST_FOREACH (&m->m_options, mo) { if (mo->mo_num == opt) { - int sz = *szp; + size_t sz = *szp; if (sz > mo->mo_sz) { sz = mo->mo_sz; memcpy(val, mo->mo_val, sz); |
