diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-04-01 20:21:33 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-04-01 21:33:46 +0300 |
commit | d27d2b3857f86e566d0e2abe658b68dcd0b2ff95 (patch) | |
tree | f9177a22ae3ce2933552ce02b8e4101a9aefeba5 | |
parent | fb9100e3e7981e9fe9ec4171b905641f51b6ace3 (diff) | |
download | libmicrohttpd-d27d2b3857f86e566d0e2abe658b68dcd0b2ff95.tar.gz libmicrohttpd-d27d2b3857f86e566d0e2abe658b68dcd0b2ff95.zip |
test_get_iovec: fixed compiler warning
-rw-r--r-- | src/testcurl/test_get_iovec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testcurl/test_get_iovec.c b/src/testcurl/test_get_iovec.c index 0c58f26f..45658c96 100644 --- a/src/testcurl/test_get_iovec.c +++ b/src/testcurl/test_get_iovec.c | |||
@@ -99,7 +99,7 @@ iovncont_free_callback (void *cls) | |||
99 | unsigned int i; | 99 | unsigned int i; |
100 | 100 | ||
101 | for (i = 0; i < TESTSTR_IOVCNT; ++i) | 101 | for (i = 0; i < TESTSTR_IOVCNT; ++i) |
102 | free (iov[i].iov_base); | 102 | free ((void*) iov[i].iov_base); |
103 | free (iov); | 103 | free (iov); |
104 | } | 104 | } |
105 | 105 | ||
@@ -245,7 +245,7 @@ err_out: | |||
245 | for (j = 0; j < TESTSTR_IOVCNT; ++j) | 245 | for (j = 0; j < TESTSTR_IOVCNT; ++j) |
246 | { | 246 | { |
247 | if (NULL != iov[j].iov_base) | 247 | if (NULL != iov[j].iov_base) |
248 | free (iov[j].iov_base); | 248 | free ((void*) iov[j].iov_base); |
249 | } | 249 | } |
250 | free (iov); | 250 | free (iov); |
251 | return MHD_NO; | 251 | return MHD_NO; |