diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-01 07:02:54 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-01 07:02:54 +0000 |
commit | 7162db6632fa895b1cf7f2e87b2b4259d8f6afe8 (patch) | |
tree | f922eb1b1580da830e8d130e8fb484b9b290f84a | |
parent | f3999874e4772bdd8fe6fc8eaa4a3513265ceb92 (diff) | |
download | ruby-7162db6632fa895b1cf7f2e87b2b4259d8f6afe8.tar.gz |
* io.c (READ_DATA_PENDING_PTR): cast to get rid of warnings.
* ext/socket/socket.c (unix_send_io, unix_recv_io): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 590d2c31b3..13329eedcb 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 |