Skip to content

Commit

Permalink
Use typedef for SOCKET instead of #define
Browse files Browse the repository at this point in the history
This makes the code analyzer in CLion happy

Change-Id: Ifa9b99243eb6e63311b0f9a201614ce21af62335
Reviewed-on: http://review.couchbase.org/54296
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
  • Loading branch information
trondn committed Aug 11, 2015
1 parent 75f0a12 commit 375f8f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.h.in
Expand Up @@ -50,7 +50,7 @@ typedef long long int64_t;
#endif

#define closesocket(a) close(a)
#define SOCKET int
typedef int SOCKET;
#define SOCKETPAIR_AF AF_UNIX
#define SOCKET_ERROR -1
#define INVALID_SOCKET -1
Expand Down

0 comments on commit 375f8f4

Please sign in to comment.