]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Cast GetVolumeInformationByHandleW to (void *)
authorDavid Woodhouse <dwmw2@infradead.org>
Sat, 27 Mar 2021 15:00:34 +0000 (15:00 +0000)
committerDavid Woodhouse <dwmw2@infradead.org>
Sat, 27 Mar 2021 15:00:34 +0000 (15:00 +0000)
commit2863803857d884c319ba7f57051c61b626cb9208
tree6946ff201fd0344b7724abf47caa8c0d2b0167fb
parent7dd9acfc89690f95b6094dfac6e03038f8969dd9
Cast GetVolumeInformationByHandleW to (void *)

The 64-bit Windows build was complaining of pointer type mismatches but
I'm fairly sure it was a false positive:

../ssl.c: In function 'openconnect_passphrase_from_fsid':
../ssl.c:598:9: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(void *, WCHAR *, DWORD,  DWORD *, DWORD *, DWORD *, WCHAR *, DWORD)' {aka 'int (*)(void *, short unsigned int *, long unsigned int,  long unsigned int *, long unsigned int *, long unsigned int *, short unsigned int *, long unsigned int)'} [-Wcast-function-type]
  598 |  func = (GVIBH)GetProcAddress(kernlib, "GetVolumeInformationByHandleW");
      |         ^

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
ssl.c