X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=octopi%2Flibrary%2Fsockets%2Fraw_socket.cpp;fp=octopi%2Flibrary%2Fsockets%2Fraw_socket.cpp;h=6fb3d6eaabc520670acaf673f006b8e37e40eea6;hb=7b39f7e279005c8466ef508220a532ce2aa4abf8;hp=9b750e2ff4dedf0bf47ff268a49c20422ac31ac4;hpb=3fbd372b35b15a19fb171d5ae34294ff7b1e6485;p=feisty_meow.git diff --git a/octopi/library/sockets/raw_socket.cpp b/octopi/library/sockets/raw_socket.cpp index 9b750e2f..6fb3d6ea 100644 --- a/octopi/library/sockets/raw_socket.cpp +++ b/octopi/library/sockets/raw_socket.cpp @@ -235,8 +235,8 @@ int raw_socket::inner_select(basis::un_int socket, int mode, int timeout, // select will tell us about the socket. int ret = ::select(socket + 1, - (mode & SELECTING_JUST_WRITE)? NIL : &read_list, - (mode & SELECTING_JUST_READ)? NIL : &write_list, + (mode & SELECTING_JUST_WRITE)? NULL_POINTER : &read_list, + (mode & SELECTING_JUST_READ)? NULL_POINTER : &write_list, &exceptions, time_out); int error = critical_events::system_error(); if (!ret) return 0; // nothing to report. @@ -415,8 +415,8 @@ int raw_socket::select(int_array &read_sox, int_array &write_sox, // select will tell us about the socket. int ret = ::select(highest + 1, - (read_sox.length())? &read_list : NIL, - (write_sox.length())? &write_list : NIL, + (read_sox.length())? &read_list : NULL_POINTER, + (write_sox.length())? &write_list : NULL_POINTER, &exceptions, time_out); int error = critical_events::system_error();