diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-17 13:59:09 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-17 13:59:09 +0000 |
| commit | a8799c688968fd059cb49b06eb62b6ccea8396ee (patch) | |
| tree | b8fe5723cc3fa40e3c0390d3aef8f4b2396c67b4 /ext | |
| parent | 4e541c3ef91f7c115cdd4694e76b556e2b3db93c (diff) | |
| download | ruby-a8799c688968fd059cb49b06eb62b6ccea8396ee.tar.gz ruby-a8799c688968fd059cb49b06eb62b6ccea8396ee.tar.xz ruby-a8799c688968fd059cb49b06eb62b6ccea8396ee.zip | |
* ext/io/wait/wait.c (io_ready_p): protoize.
* pack.c (define_swapx): should not use plain malloc.
* ext/curses/curses.c (curses_getmouse): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/curses/curses.c | 2 | ||||
| -rw-r--r-- | ext/io/wait/wait.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/ext/curses/curses.c b/ext/curses/curses.c index f1d037b19..5d5fdb567 100644 --- a/ext/curses/curses.c +++ b/ext/curses/curses.c @@ -646,7 +646,7 @@ curses_getmouse(VALUE obj) val = Data_Make_Struct(cMouseEvent,struct mousedata, 0,curses_mousedata_free,mdata); - mdata->mevent = (MEVENT*)malloc(sizeof(MEVENT)); + mdata->mevent = (MEVENT*)xmalloc(sizeof(MEVENT)); return (getmouse(mdata->mevent) == OK) ? val : Qnil; } diff --git a/ext/io/wait/wait.c b/ext/io/wait/wait.c index 13daaf6b5..4b95698ce 100644 --- a/ext/io/wait/wait.c +++ b/ext/io/wait/wait.c @@ -53,8 +53,7 @@ EXTERN struct timeval rb_time_interval _((VALUE time)); =end */ static VALUE -io_ready_p(io) - VALUE io; +io_ready_p(VALUE io) { OpenFile *fptr; ioctl_arg n; |
