]> granicus.if.org Git - curl/commit
lib583: fix compiler warning
authorMarcel Raad <raad@teamviewer.com>
Wed, 31 May 2017 17:05:50 +0000 (19:05 +0200)
committerMarcel Raad <raad@teamviewer.com>
Wed, 31 May 2017 17:05:50 +0000 (19:05 +0200)
commit45cecfbd33b121c864cbb7b83ea63f749e99f424
tree12330a7e5d7e97c1fd38414650c1155e878b19b8
parentaae4a4788a4949d85069c5959c860969dc614be7
lib583: fix compiler warning

Use CURLMcode for variable 'res' and cast to int where necessary
instead of the other way around. Other tests do the same.

This fixes the following clang warning:
lib583.c:68:15: warning: cast from function call of type 'CURLMcode' to
non-matching type 'int' [-Wbad-function-cast]
tests/libtest/lib583.c