mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-29 17:33:09 +00:00
fix mingw compilation warning
* src/libvirt.c (winsock_init) [HAVE_WINSOCK2_H]: Always return a value.
This commit is contained in:
parent
c402724354
commit
327b2eea26
@ -1,3 +1,8 @@
|
|||||||
|
Fri Oct 24 10:54:23 CEST Jim Meyering <meyering@redhat.com>
|
||||||
|
|
||||||
|
fix mingw compilation warning
|
||||||
|
* src/libvirt.c (winsock_init) [HAVE_WINSOCK2_H]: Always return a value.
|
||||||
|
|
||||||
Thu Oct 23 15:20:00 CEST 2008 Chris Lalancete <clalance@redhat.com>
|
Thu Oct 23 15:20:00 CEST 2008 Chris Lalancete <clalance@redhat.com>
|
||||||
* src/storage_conf.c: brown paper bag bug. I didn't preserve the
|
* src/storage_conf.c: brown paper bag bug. I didn't preserve the
|
||||||
<sources> tags properly, and I didn't put the <source> tag into the
|
<sources> tags properly, and I didn't put the <source> tag into the
|
||||||
|
@ -238,8 +238,7 @@ winsock_init (void)
|
|||||||
/* http://msdn2.microsoft.com/en-us/library/ms742213.aspx */
|
/* http://msdn2.microsoft.com/en-us/library/ms742213.aspx */
|
||||||
winsock_version = MAKEWORD (2, 2);
|
winsock_version = MAKEWORD (2, 2);
|
||||||
err = WSAStartup (winsock_version, &winsock_data);
|
err = WSAStartup (winsock_version, &winsock_data);
|
||||||
if (err != 0)
|
return err == 0 ? 0 : -1;
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user