]> granicus.if.org Git - curl/commit
tool_cb_wrt: fix bad-function-cast warning
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Mon, 1 Apr 2019 16:40:01 +0000 (18:40 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Tue, 2 Apr 2019 11:14:57 +0000 (13:14 +0200)
commitd110d96b981fb0d0df54ded3f7fc876be891e2e3
tree6f6e02afe62200abdeae88b273d9b2557edb0142
parente102ba7a19b81541b8d56014c2f2c70246af2363
tool_cb_wrt: fix bad-function-cast warning

Commit f5bc578f4cdfdc6c708211dfc2962a0e9d79352d reintroduced the
warning fixed in commit 2f5f31bb57d68b54e03bffcd9648aece1fe564f8.
Extend fhnd's scope and reuse that variable instead of calling
_get_osfhandle a second time to fix the warning again.

Closes https://github.com/curl/curl/pull/3718
src/tool_cb_wrt.c