mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
osdep: remove use of socket_error() from all code
Now that QEMU wraps the Win32 sockets methods to automatically set errno upon failure, there is no reason for callers to use the socket_error() method. They can rely on accessing errno even on Win32. Remove all use of socket_error() from general code, leaving it as a static method in oslib-win32.c only. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
a2d96af4bb
commit
b16a44e13e
11 changed files with 46 additions and 63 deletions
|
@ -40,8 +40,6 @@ void os_daemonize(void);
|
|||
void os_setup_post(void);
|
||||
int os_mlock(void);
|
||||
|
||||
#define socket_error() errno
|
||||
|
||||
#define closesocket(s) close(s)
|
||||
#define ioctlsocket(s, r, v) ioctl(s, r, v)
|
||||
|
||||
|
|
|
@ -55,8 +55,6 @@ struct tm *gmtime_r(const time_t *timep, struct tm *result);
|
|||
struct tm *localtime_r(const time_t *timep, struct tm *result);
|
||||
#endif /* CONFIG_LOCALTIME_R */
|
||||
|
||||
int socket_error(void);
|
||||
|
||||
static inline void os_setup_signal_handling(void) {}
|
||||
static inline void os_daemonize(void) {}
|
||||
static inline void os_setup_post(void) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue