summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-11 04:06:57 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-11 04:06:57 +0000
commit8b88c5888c5b5fba45c73045dce012bbad6310d5 (patch)
tree09c5aeee6d945b4cf00385269dd31d474fadc2ca /ext
parentea6b7f3bdf7698ad639ae92c5a41bd9d59705c06 (diff)
downloadruby-8b88c5888c5b5fba45c73045dce012bbad6310d5.tar.gz
ruby-8b88c5888c5b5fba45c73045dce012bbad6310d5.tar.xz
ruby-8b88c5888c5b5fba45c73045dce012bbad6310d5.zip
* ext/dl/handle.c (rb_dlhandle_sym): moved conditinally used variable.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/dl/handle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/handle.c b/ext/dl/handle.c
index a65e4ab5c..bf2d7aa6c 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__)