summaryrefslogtreecommitdiff
path: root/dln.c
diff options
context:
space:
mode:
authorkanemoto <kanemoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-23 16:18:59 +0000
committerkanemoto <kanemoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-23 16:18:59 +0000
commit12fcef8829b9f514a517c606bd783eaffb401318 (patch)
tree50fdf833efd3638b663bed82869751d38a397c73 /dln.c
parent8a52a566fe28487cd7c23fa989c5332fe93fbc98 (diff)
* dln.c (aix_loaderror): fixed typo. suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dln.c')
-rw-r--r--dln.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/dln.c b/dln.c
index 4837048..a4250a5 100644
--- a/dln.c
+++ b/dln.c
@@ -1094,6 +1094,7 @@ dln_sym(const char *name)
#include <windows.h>
#endif
+#if ! defined _AIX
static const char *
dln_strerror(void)
{
@@ -1143,7 +1144,7 @@ dln_strerror(void)
return message;
#endif
}
-
+#endif
#if defined(_AIX) && ! defined(_IA64)
static void
@@ -1154,7 +1155,7 @@ aix_loaderror(const char *pathname)
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 @@ aix_loaderror(const char *pathname)
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]);