[前][次][番号順一覧][スレッド一覧]

ruby-changes:6525

From: akr <ko1@a...>
Date: Sat, 12 Jul 2008 23:26:11 +0900 (JST)
Subject: [ruby-changes:6525] Ruby:r18041 (trunk): * ext/socket/socket.c: use PRIuSIZE.

akr	2008-07-12 23:25:52 +0900 (Sat, 12 Jul 2008)

  New Revision: 18041

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18041

  Log:
    * ext/socket/socket.c: use PRIuSIZE.

  Modified files:
    trunk/ChangeLog
    trunk/ext/socket/socket.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 18040)
+++ ChangeLog	(revision 18041)
@@ -1,3 +1,7 @@
+Sat Jul 12 23:24:21 2008  Tanaka Akira  <akr@f...>
+
+	* ext/socket/socket.c: use PRIuSIZE.
+
 Sat Jul 12 22:41:39 2008  Nobuyoshi Nakada  <nobu@r...>
 
 	* include/ruby/ruby.h (PRI_PTRDIFF_PREFIX, PRI_SIZE_PREFIX): fixed typo.
Index: ext/socket/socket.c
===================================================================
--- ext/socket/socket.c	(revision 18040)
+++ ext/socket/socket.c	(revision 18041)
@@ -883,8 +883,8 @@
 	    make_inetaddr(INADDR_BROADCAST, hbuf, len);
 	}
 	else if (strlen(name) >= len) {
-	    rb_raise(rb_eArgError, "hostname too long (%"PRIuVALUE")",
-                (VALUE)strlen(name));
+	    rb_raise(rb_eArgError, "hostname too long (%"PRIuSIZE")",
+                strlen(name));
 	}
 	else {
 	    strcpy(hbuf, name);
@@ -909,8 +909,8 @@
 	SafeStringValue(port);
 	serv = RSTRING_PTR(port);
 	if (strlen(serv) >= len) {
-	    rb_raise(rb_eArgError, "service name too long (%"PRIuVALUE")",
-                (VALUE)strlen(serv));
+	    rb_raise(rb_eArgError, "service name too long (%"PRIuSIZE")",
+                strlen(serv));
 	}
 	strcpy(pbuf, serv);
 	return pbuf;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]