diff options
author | Marcel Raad <raad@teamviewer.com> | 2017-05-04 08:50:35 +0200 |
---|---|---|
committer | Marcel Raad <raad@teamviewer.com> | 2017-05-04 09:23:00 +0200 |
commit | a51ca050fc193aea9b7ace018c1588a107891d49 (patch) | |
tree | 2aa0feaec2759b07ea6f5c30701eb4fff1f27aca | |
parent | 4b933821934a176a5a0fde950c02d6b615c70c5c (diff) |
curl_setup_once: use SEND_QUAL_ARG2 for swrite
SEND_QUAL_ARG2 had to be set, but was never used. Use it in swrite to
avoid warnings about casting away low-level const.
Closes https://github.com/curl/curl/pull/1464
-rw-r--r-- | lib/curl_setup_once.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/curl_setup_once.h b/lib/curl_setup_once.h index 4da83499a..684187cae 100644 --- a/lib/curl_setup_once.h +++ b/lib/curl_setup_once.h @@ -196,7 +196,7 @@ struct timeval { /* */ #else #define swrite(x,y,z) (ssize_t)send((SEND_TYPE_ARG1)(x), \ - (SEND_TYPE_ARG2)(y), \ + (SEND_QUAL_ARG2 SEND_TYPE_ARG2)(y), \ (SEND_TYPE_ARG3)(z), \ (SEND_TYPE_ARG4)(SEND_4TH_ARG)) #endif |