From d606317f5c028fa8fba5d5384b0ccd90ffa4eab5 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 8 Feb 2018 14:16:23 -0800 Subject: fixes #171 Refactor aio to use generic data fields This addresses the use of the pipe special field, and eliminates it. The message APIs (recvmsg, sendmsg) need to be updated as well still, but I want to handle that as part of a separate issue. While here we fixed various compiler warnings, etc. --- src/core/url.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/url.c') diff --git a/src/core/url.c b/src/core/url.c index 6a2a4e53..2cdb43c2 100644 --- a/src/core/url.c +++ b/src/core/url.c @@ -284,7 +284,7 @@ nni_url_parse(nni_url **urlp, const char *raw) rv = NNG_ENOMEM; goto error; } - for (int i = 0; i < len; i++) { + for (size_t i = 0; i < len; i++) { url->u_scheme[i] = tolower(s[i]); } url->u_scheme[len] = '\0'; @@ -334,7 +334,7 @@ nni_url_parse(nni_url **urlp, const char *raw) } // Copy the host portion, but make it lower case (hostnames are // case insensitive). - for (int i = 0; i < len; i++) { + for (size_t i = 0; i < len; i++) { url->u_host[i] = tolower(s[i]); } url->u_host[len] = '\0'; -- cgit v1.2.3-70-g09d2