aboutsummaryrefslogtreecommitdiffstats
path: root/ext/dl/dl.c
diff options
context:
space:
mode:
authorttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-06-11 11:16:56 +0000
committerttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-06-11 11:16:56 +0000
commit176542da7f415dd4709ea3b1c38f39e3f58ba567 (patch)
treec149ccaa98480882b11cc508c04d2d0b404b60cd /ext/dl/dl.c
parent7f80a1800f7b13e63227fb6202bee55a81cd506b (diff)
downloadruby-176542da7f415dd4709ea3b1c38f39e3f58ba567.tar.gz
bugfix. (Thanks U.Nakamura)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/dl.c')
-rw-r--r--ext/dl/dl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/dl/dl.c b/ext/dl/dl.c
index dd4f4423b5..47cc864a7c 100644
--- a/ext/dl/dl.c
+++ b/ext/dl/dl.c
@@ -16,7 +16,7 @@ static ID id_call;
static int
rb_dl_scan_callback_args(long stack[], const char *proto,
- int *argc, VALUE (*argv)[])
+ int *argc, VALUE argv[])
{
int i;
long *sp;
@@ -93,7 +93,7 @@ rb_dl_scan_callback_args(long stack[], const char *proto,
rb_raise(rb_eDLTypeError, "unsupported type `%c'", proto[i]);
break;
}
- (*argv)[i-1] = val;
+ argv[i-1] = val;
}
*argc = (i - 1);
@@ -608,7 +608,7 @@ rb_dl_callback(int argc, VALUE argv[], VALUE self)
rettype = 0x07;
break;
default:
- rb_raise(rb_eDLTypeError, "unsupported type `%s'", STR2CSTR(rettype));
+ rb_raise(rb_eDLTypeError, "unsupported type `%c'", STR2CSTR(type)[0]);
}
entry = -1;