Skip to content

Commit

Permalink
compat: use unsigned int instead of u_int
Browse files Browse the repository at this point in the history
`u_int` is not available on some platforms (not sure what standard it's
supposed to be part of), we don't use it anywhere else, and it doesn't
hurt to simply write `unsigned int` out here.
  • Loading branch information
laanwj committed Mar 5, 2017
1 parent 25da1ee commit a4d1c9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
#endif

#ifndef WIN32
typedef u_int SOCKET;
typedef unsigned int SOCKET;
#include "errno.h"
#define WSAGetLastError() errno
#define WSAEINVAL EINVAL
Expand Down

0 comments on commit a4d1c9f

Please sign in to comment.