diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-14 05:56:51 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-14 05:56:51 +0000 |
commit | 6e23f5093e372dc02f888d5163524e2e46444fd7 (patch) | |
tree | 03a562afefd4d9656291258ce10dac507bd2afc7 /transcode.c | |
parent | 3d761f813cc52848cd1f5002f5c9a0bce7dfd573 (diff) | |
download | ruby-6e23f5093e372dc02f888d5163524e2e46444fd7.tar.gz ruby-6e23f5093e372dc02f888d5163524e2e46444fd7.tar.xz ruby-6e23f5093e372dc02f888d5163524e2e46444fd7.zip |
* thread.c (rb_thread_priority_set): get rid of C99 feature.
* transcode.c (transcode_search_path): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'transcode.c')
-rw-r--r-- | transcode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/transcode.c b/transcode.c index 73eca38ef..b064b0176 100644 --- a/transcode.c +++ b/transcode.c @@ -205,7 +205,7 @@ transcode_search_path(const char *from, const char *to, } found = 0; -cleanup: + cleanup: while (bfs.queue) { q = bfs.queue; bfs.queue = q->next; @@ -214,8 +214,8 @@ cleanup: if (found) { const char *enc = to; - pathlen = 0; int depth; + pathlen = 0; while (1) { st_lookup(bfs.visited, (st_data_t)enc, &val); if (!val) |