summaryrefslogtreecommitdiff
path: root/addr2line.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-16 08:01:26 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-16 08:01:26 (GMT)
commit0de6da0ee5c012c6956d6f33976ad8baab0f1b5a (patch)
tree580ea3093c4fed51563d9e88ba325ce79e2ccbe8 /addr2line.c
parent16ec72e56c915d31a4672b3991c6cdd9b70a5efd (diff)
make a func static.
* addr2line.c (main_exe_path): make it static. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'addr2line.c')
-rw-r--r--addr2line.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/addr2line.c b/addr2line.c
index 55cc997..b59623f 100644
--- a/addr2line.c
+++ b/addr2line.c
@@ -654,7 +654,7 @@ fail:
* it is NUL terminated.
*/
#if defined(__linux__)
-ssize_t
+static ssize_t
main_exe_path(void)
{
# define PROC_SELF_EXE "/proc/self/exe"
@@ -663,7 +663,7 @@ main_exe_path(void)
return len;
}
#elif defined(__FreeBSD__)
-ssize_t
+static ssize_t
main_exe_path(void)
{
int mib[4] = {CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1};