Skip to content

Commit

Permalink
SLIRP: Fix Coverity changes
Browse files Browse the repository at this point in the history
  • Loading branch information
markpizz committed Apr 12, 2019
1 parent 71abd28 commit 06d7860
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sim_sock.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,10 @@ extern "C" {
#endif
#define WSAEACCES EACCES
#define WSAEINTR EINTR
#define INVALID_SOCKET ((SOCKET)-1)
#define SOCKET_ERROR -1
#define INVALID_SOCKET ((SOCKET)-1)
#if !defined(SOCKET_ERROR)
#define SOCKET_ERROR (-1)
#endif
#endif

#if defined (VMS) /* VMS unique */
Expand Down
1 change: 1 addition & 0 deletions slirp_glue/config-host.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <winsock2.h>
#else
typedef int SOCKET;
#define SOCKET_ERROR (-1)
#endif

#ifndef __cplusplus
Expand Down

0 comments on commit 06d7860

Please sign in to comment.