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:
parent
30235cd14e
commit
9d05b9a4b3
5 changed files with 16 additions and 1 deletions
11
ChangeLog
11
ChangeLog
|
@ -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.
|
||||
|
|
2
error.c
2
error.c
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
1
io.c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue