* 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
This commit is contained in:
parent
8a52a566fe
commit
12fcef8829
@ -1,3 +1,7 @@
|
|||||||
|
Thu Sep 24 01:14:18 2009 Yutaka Kanemoto <kanemoto@ruby-lang.org>
|
||||||
|
|
||||||
|
* dln.c (aix_loaderror): fixed typo. suppress warnings.
|
||||||
|
|
||||||
Thu Sep 24 00:17:06 2009 Tanaka Akira <akr@fsij.org>
|
Thu Sep 24 00:17:06 2009 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* enum.c (enum_minmax): reduce comparison.
|
* enum.c (enum_minmax): reduce comparison.
|
||||||
|
7
dln.c
7
dln.c
@ -1094,6 +1094,7 @@ dln_sym(const char *name)
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if ! defined _AIX
|
||||||
static const char *
|
static const char *
|
||||||
dln_strerror(void)
|
dln_strerror(void)
|
||||||
{
|
{
|
||||||
@ -1143,7 +1144,7 @@ dln_strerror(void)
|
|||||||
return message;
|
return message;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(_AIX) && ! defined(_IA64)
|
#if defined(_AIX) && ! defined(_IA64)
|
||||||
static void
|
static void
|
||||||
@ -1154,7 +1155,7 @@ aix_loaderror(const char *pathname)
|
|||||||
|
|
||||||
static const struct errtab {
|
static const struct errtab {
|
||||||
int errnum;
|
int errnum;
|
||||||
char *errstr;
|
const char * errstr;
|
||||||
} load_errtab[] = {
|
} load_errtab[] = {
|
||||||
{L_ERROR_TOOMANY, "too many errors, rest skipped."},
|
{L_ERROR_TOOMANY, "too many errors, rest skipped."},
|
||||||
{L_ERROR_NOLIB, "can't load library:"},
|
{L_ERROR_NOLIB, "can't load library:"},
|
||||||
@ -1176,7 +1177,7 @@ aix_loaderror(const char *pathname)
|
|||||||
snprintf(errbuf, sizeof(errbuf), "load failed - %s ", pathname);
|
snprintf(errbuf, sizeof(errbuf), "load failed - %s ", pathname);
|
||||||
|
|
||||||
message[0] = NULL;
|
message[0] = NULL;
|
||||||
if (!loadquery(L_GETMESSAGE, &message[0], sizeof(message)))
|
if (!loadquery(L_GETMESSAGES, &message[0], sizeof(message)))
|
||||||
ERRBUF_APPEND(strerror(errno));
|
ERRBUF_APPEND(strerror(errno));
|
||||||
for(i = 0; message[i] && *message[i]; i++) {
|
for(i = 0; message[i] && *message[i]; i++) {
|
||||||
int nerr = atoi(message[i]);
|
int nerr = atoi(message[i]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user