fix mingw compilation warning

* src/libvirt.c (winsock_init) [HAVE_WINSOCK2_H]: Always return a value.
This commit is contained in:
Jim Meyering
2008-10-24 08:55:13 +00:00
parent c402724354
commit 327b2eea26
2 changed files with 6 additions and 2 deletions
+1 -2
View File
@@ -238,8 +238,7 @@ winsock_init (void)
/* http://msdn2.microsoft.com/en-us/library/ms742213.aspx */
winsock_version = MAKEWORD (2, 2);
err = WSAStartup (winsock_version, &winsock_data);
if (err != 0)
return -1;
return err == 0 ? 0 : -1;
}
#endif