aboutsummaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-05 14:00:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-05 14:00:15 +0000
commite431e7d15cd5333d425d54331c07842761c8f963 (patch)
treed81002347d65862ab84f455042af5a816b981ef7 /ruby.c
parent89c5e354078c4953f163c88cc6781e65136303f5 (diff)
downloadruby-e431e7d15cd5333d425d54331c07842761c8f963.tar.gz
internal.h: move rb_readlink declaration
* internal.h (rb_readlink): move the declaration. * ruby.c (dladdr_path): rb_readlink now requires the result encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ruby.c b/ruby.c
index d74451ff62..a6f5ca1e0e 100644
--- a/ruby.c
+++ b/ruby.c
@@ -382,9 +382,8 @@ dladdr_path(const void* addr)
}
#ifdef __linux__
else if (dli.dli_fname == origarg.argv[0]) {
- VALUE rb_readlink(VALUE);
fname = rb_str_new_cstr("/proc/self/exe");
- path = rb_readlink(fname);
+ path = rb_readlink(fname, NULL);
}
#endif
else {