1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* io.c (io_close): missing prototype.

* ext/socket/socket.c (bsock_do_not_rev_lookup_set): ditto.
* ext/win32ole/win32ole.c (foletype_guid, foletype_progid): ditto.
* error.c (syserr_initialize): length argument of sprintf() is an int.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
aamine 2003-06-23 14:55:09 +00:00
parent 30235cd14e
commit 9d05b9a4b3
5 changed files with 16 additions and 1 deletions

View file

@ -1,3 +1,14 @@
Mon Jun 23 23:59:56 2003 Minero Aoki <aamine@loveruby.net>
* io.c (io_close): missing prototype.
* ext/socket/socket.c (bsock_do_not_rev_lookup_set): ditto.
* ext/win32ole/win32ole.c (foletype_guid, foletype_progid): ditto.
* error.c (syserr_initialize): length argument of sprintf() is an
int.
Mon Jun 23 23:28:14 2003 WATANABE Hirofumi <eban@ruby-lang.org>
* MANIFEST: add wince files.

View file

@ -582,7 +582,7 @@ syserr_initialize(argc, argv, self)
if (!NIL_P(mesg)) {
StringValue(mesg);
buf = ALLOCA_N(char, strlen(err)+RSTRING(mesg)->len+4);
sprintf(buf, "%s - %.*s", err, RSTRING(mesg)->len, RSTRING(mesg)->ptr);
sprintf(buf, "%s - %.*s", err, (int)RSTRING(mesg)->len, RSTRING(mesg)->ptr);
mesg = rb_str_new2(buf);
}
else {

View file

@ -484,6 +484,7 @@ bsock_do_not_rev_lookup()
static VALUE
bsock_do_not_rev_lookup_set(self, val)
VALUE self, val;
{
rb_secure(4);
do_not_reverse_lookup = RTEST(val);

View file

@ -3190,6 +3190,7 @@ ole_type_guid(pTypeInfo)
*/
static VALUE
foletype_guid(self)
VALUE self;
{
struct oletypedata *ptype;
Data_Get_Struct(self, struct oletypedata, ptype);
@ -3221,6 +3222,7 @@ ole_type_progid(pTypeInfo)
*/
static VALUE
foletype_progid(self)
VALUE self;
{
struct oletypedata *ptype;
Data_Get_Struct(self, struct oletypedata, ptype);

1
io.c
View file

@ -1424,6 +1424,7 @@ rb_io_close_m(io)
static VALUE
io_close(io)
VALUE io;
{
return rb_funcall(io, rb_intern("close"), 0, 0);
}