diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ext/socket/socket.c | 2 | ||||
-rw-r--r-- | io.c | 2 |
3 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Fri Aug 1 16:02:46 2003 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * io.c (READ_DATA_PENDING_PTR): cast to get rid of warnings. + + * ext/socket/socket.c (unix_send_io, unix_recv_io): ditto. + Fri Aug 1 15:53:24 2003 NAKAMURA Usaku <usa@ruby-lang.org> * win32/win32.c (isInternalCmd): shouldn't return if find end of str. diff --git a/ext/socket/socket.c b/ext/socket/socket.c index 590d2c31b..13329eedc 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -1565,6 +1565,7 @@ unix_send_io(sock, val) return Qnil; #else rb_notimplement(); + return Qnil; /* not reached */ #endif } @@ -1656,6 +1657,7 @@ unix_recv_io(argc, argv, sock) } #else rb_notimplement(); + return Qnil; /* not reached */ #endif } @@ -144,7 +144,7 @@ extern int ReadDataPending(); #ifndef READ_DATA_PENDING_PTR # ifdef FILE_READPTR -# define READ_DATA_PENDING_PTR(fp) ((fp)->FILE_READPTR) +# define READ_DATA_PENDING_PTR(fp) ((char *)(fp)->FILE_READPTR) # endif #endif |