From f5315680aabcca7f29eb8e893953c26dca0042f8 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 11 Mar 2009 04:06:57 +0000 Subject: * ext/dl/handle.c (rb_dlhandle_sym): moved conditinally used variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/dl/handle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/dl') diff --git a/ext/dl/handle.c b/ext/dl/handle.c index a65e4ab5cd..bf2d7aa6cc 100644 --- a/ext/dl/handle.c +++ b/ext/dl/handle.c @@ -136,7 +136,6 @@ rb_dlhandle_sym(VALUE self, VALUE sym) struct dl_handle *dlhandle; void *handle; const char *name; - int i; #if defined(HAVE_DLERROR) const char *err; # define CHECK_DLERROR if( err = dlerror() ){ func = 0; } @@ -168,6 +167,7 @@ rb_dlhandle_sym(VALUE self, VALUE sym) CHECK_DLERROR; #if defined(FUNC_STDCALL) if( !func ){ + int i; int len = strlen(name); char *name_n; #if defined(__CYGWIN__) || defined(_WIN32) || defined(__MINGW32__) -- cgit v1.2.3