]> git.eshelyaron.com Git - emacs.git/commit
Fix compiler warnings in w32.c
authorEli Zaretskii <eliz@gnu.org>
Thu, 26 Nov 2015 17:53:47 +0000 (19:53 +0200)
committerEli Zaretskii <eliz@gnu.org>
Thu, 26 Nov 2015 17:53:47 +0000 (19:53 +0200)
commit6f5f62b3c79485245b1f6d3d9a33d72da92c9e1d
treef43eb82766dc71b962385f04e4c32e4bf4ca2d9d
parent02cd9cb8afd9510e3bdb20ce7148d1b9a6aa9d12
Fix compiler warnings in w32.c

* src/w32.c (sys_socket): In case of error, use -1 as return
value, not INVALID_SOCKET, which causes compiler warnings.
(maybe_load_unicows_dll): Cast the return value of GetProcAddress
to the appropriate function signature, to avoid compiler errors.
Reported by Andy Moreton <andrewjmoreton@gmail.com>.  (Bug#21953)
src/w32.c
src/w32.h