0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-08-22 09:34:45 +02:00

cleanup: u_long -> unsigned long

This commit is contained in:
Elizabeth Myers 2016-03-23 22:03:24 -05:00
parent 30cf391b89
commit 491b3b39d5
4 changed files with 3 additions and 4 deletions

View file

@ -113,7 +113,7 @@ char *rb_strerror(int error);
#define EAFNOSUPPORT WSAEAFNOSUPPORT #define EAFNOSUPPORT WSAEAFNOSUPPORT
#define pipe(x) _pipe(x, 1024, O_BINARY) #define pipe(x) _pipe(x, 1024, O_BINARY)
#define ioctl(x,y,z) ioctlsocket(x,y, (u_long *)z) #define ioctl(x,y,z) ioctlsocket(x,y, (unsigned long *)z)
#define WNOHANG 1 #define WNOHANG 1

View file

@ -24,7 +24,6 @@
#define INET6_ADDRSTRLEN 46 #define INET6_ADDRSTRLEN 46
#endif #endif
/* typedef unsigned int u_int; */
#define rb_prefix_touchar(prefix) ((unsigned char *)&(prefix)->add.sin) #define rb_prefix_touchar(prefix) ((unsigned char *)&(prefix)->add.sin)
#define MAXLINE 1024 #define MAXLINE 1024
#define BIT_TEST(f, b) ((f) & (b)) #define BIT_TEST(f, b) ((f) & (b))

View file

@ -754,7 +754,7 @@ rb_des_crypt(const char *key, const char *setting)
#define MD5_SIZE 16 #define MD5_SIZE 16
static void static void
_crypt_to64(char *s, u_long v, int n) _crypt_to64(char *s, unsigned long v, int n)
{ {
while (--n >= 0) { while (--n >= 0) {
*s++ = ascii64[v&0x3f]; *s++ = ascii64[v&0x3f];

View file

@ -414,7 +414,7 @@ rb_setup_fd_win32(rb_fde_t *F)
{ {
case RB_FD_SOCKET: case RB_FD_SOCKET:
{ {
u_long nonb = 1; unsigned long nonb = 1;
if(ioctlsocket((SOCKET) F->fd, FIONBIO, &nonb) == -1) if(ioctlsocket((SOCKET) F->fd, FIONBIO, &nonb) == -1)
{ {
rb_get_errno(); rb_get_errno();