Skip to content

Commit 9d05b9a

Browse files
author
aamine
committed
* 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
1 parent 30235cd commit 9d05b9a

File tree

5 files changed

+16
-1
lines changed

5 files changed

+16
-1
lines changed

ChangeLog

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
Mon Jun 23 23:59:56 2003 Minero Aoki <aamine@loveruby.net>
2+
3+
* io.c (io_close): missing prototype.
4+
5+
* ext/socket/socket.c (bsock_do_not_rev_lookup_set): ditto.
6+
7+
* ext/win32ole/win32ole.c (foletype_guid, foletype_progid): ditto.
8+
9+
* error.c (syserr_initialize): length argument of sprintf() is an
10+
int.
11+
112
Mon Jun 23 23:28:14 2003 WATANABE Hirofumi <eban@ruby-lang.org>
213

314
* MANIFEST: add wince files.

error.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ syserr_initialize(argc, argv, self)
582582
if (!NIL_P(mesg)) {
583583
StringValue(mesg);
584584
buf = ALLOCA_N(char, strlen(err)+RSTRING(mesg)->len+4);
585-
sprintf(buf, "%s - %.*s", err, RSTRING(mesg)->len, RSTRING(mesg)->ptr);
585+
sprintf(buf, "%s - %.*s", err, (int)RSTRING(mesg)->len, RSTRING(mesg)->ptr);
586586
mesg = rb_str_new2(buf);
587587
}
588588
else {

ext/socket/socket.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ bsock_do_not_rev_lookup()
484484

485485
static VALUE
486486
bsock_do_not_rev_lookup_set(self, val)
487+
VALUE self, val;
487488
{
488489
rb_secure(4);
489490
do_not_reverse_lookup = RTEST(val);

ext/win32ole/win32ole.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3190,6 +3190,7 @@ ole_type_guid(pTypeInfo)
31903190
*/
31913191
static VALUE
31923192
foletype_guid(self)
3193+
VALUE self;
31933194
{
31943195
struct oletypedata *ptype;
31953196
Data_Get_Struct(self, struct oletypedata, ptype);
@@ -3221,6 +3222,7 @@ ole_type_progid(pTypeInfo)
32213222
*/
32223223
static VALUE
32233224
foletype_progid(self)
3225+
VALUE self;
32243226
{
32253227
struct oletypedata *ptype;
32263228
Data_Get_Struct(self, struct oletypedata, ptype);

io.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,6 +1424,7 @@ rb_io_close_m(io)
14241424

14251425
static VALUE
14261426
io_close(io)
1427+
VALUE io;
14271428
{
14281429
return rb_funcall(io, rb_intern("close"), 0, 0);
14291430
}

0 commit comments

Comments
 (0)