aboutsummaryrefslogtreecommitdiff
path: root/tests/convey.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-16 22:22:07 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-16 22:22:07 -0800
commit4e46e666e47e277316cc680c833356045932bb5f (patch)
treed6888f69674a93a3c0a82baafc268773c7bb2976 /tests/convey.c
parent50e1484af0d443b46aa04fd4a8096b157dc160aa (diff)
downloadnng-4e46e666e47e277316cc680c833356045932bb5f.tar.gz
nng-4e46e666e47e277316cc680c833356045932bb5f.tar.bz2
nng-4e46e666e47e277316cc680c833356045932bb5f.zip
External event API for send/recv implemented.
This was the main blocker, I think, for the nanomsg legacy compat shim. Now that we have this, it should be relatively straight-forward to implement the legacy nanomsg API, including the SENDFD, RECVFD thing.
Diffstat (limited to 'tests/convey.c')
-rw-r--r--tests/convey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/convey.c b/tests/convey.c
index 62471a2c..d1691665 100644
--- a/tests/convey.c
+++ b/tests/convey.c
@@ -705,7 +705,7 @@ convey_vlogf(struct convey_log *log, const char *fmt, va_list va, int addnl)
{
/* Grow the log buffer if we need to */
while ((log->log_size - log->log_length) < 256) {
- int newsz = log->log_size + 2000;
+ size_t newsz = log->log_size + 2000;
char *ptr = malloc(newsz);
if (ptr == NULL) {
return;