]> granicus.if.org Git - curl/commit
schannel: fix compiler warnings
authorMarcel Raad <raad@teamviewer.com>
Thu, 6 Apr 2017 18:04:58 +0000 (20:04 +0200)
committerMarcel Raad <raad@teamviewer.com>
Fri, 7 Apr 2017 06:57:52 +0000 (08:57 +0200)
commit33ca733ee2132ab8518f2316f8e4b5629ecedab7
tree5bd177e77a072a004cee5cdc786df23db7925d84
parent1f152a42ae9c2985b8a0cedf90d3b63b2e64a898
schannel: fix compiler warnings

When UNICODE is not defined, the Curl_convert_UTF8_to_tchar macro maps
directly to its argument. As it is declared as a pointer to const and
InitializeSecurityContext expects a pointer to non-const, both MSVC and MinGW
issue a warning about implicitly casting away the const. Fix this by declaring
the variables as pointers to non-const.

Closes https://github.com/curl/curl/pull/1394
lib/vtls/schannel.c