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

ruby-changes:13298

From: kanemoto <ko1@a...>
Date: Thu, 24 Sep 2009 01:19:14 +0900 (JST)
Subject: [ruby-changes:13298] Ruby:r25061 (trunk): * dln.c (aix_loaderror): fixed typo. suppress warnings.

kanemoto	2009-09-24 01:18:59 +0900 (Thu, 24 Sep 2009)

  New Revision: 25061

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

  Log:
    * dln.c (aix_loaderror): fixed typo. suppress warnings.

  Modified files:
    trunk/ChangeLog
    trunk/dln.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 25060)
+++ ChangeLog	(revision 25061)
@@ -1,3 +1,7 @@
+Thu Sep 24 01:14:18 2009  Yutaka Kanemoto  <kanemoto@r...>
+
+	* dln.c (aix_loaderror): fixed typo. suppress warnings.
+
 Thu Sep 24 00:17:06 2009  Tanaka Akira  <akr@f...>
 
 	* enum.c (enum_minmax): reduce comparison.
Index: dln.c
===================================================================
--- dln.c	(revision 25060)
+++ dln.c	(revision 25061)
@@ -1094,6 +1094,7 @@
 #include <windows.h>
 #endif
 
+#if ! defined _AIX
 static const char *
 dln_strerror(void)
 {
@@ -1143,8 +1144,8 @@
     return message;
 #endif
 }
+#endif
 
-
 #if defined(_AIX) && ! defined(_IA64)
 static void
 aix_loaderror(const char *pathname)
@@ -1154,7 +1155,7 @@
 
     static const struct errtab {
 	int errnum;
-	char *errstr;
+	const char * errstr;
     } load_errtab[] = {
 	{L_ERROR_TOOMANY,	"too many errors, rest skipped."},
 	{L_ERROR_NOLIB,		"can't load library:"},
@@ -1176,7 +1177,7 @@
     snprintf(errbuf, sizeof(errbuf), "load failed - %s ", pathname);
 
     message[0] = NULL;
-    if (!loadquery(L_GETMESSAGE, &message[0], sizeof(message)))
+    if (!loadquery(L_GETMESSAGES, &message[0], sizeof(message)))
 	ERRBUF_APPEND(strerror(errno));
     for(i = 0; message[i] && *message[i]; i++) {
 	int nerr = atoi(message[i]);

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

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