aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sys.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys.c')
-rw-r--r--src/sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sys.c b/src/sys.c
index 5c9a4ea..453c973 100644
--- a/src/sys.c
+++ b/src/sys.c
@@ -1,7 +1,7 @@
#include "sys.h"
#include "std.h"
-char* get_self_path() {
+static char* get_self_path() {
char* buf = calloc(PATH_MAX, sizeof(char));
ssize_t len = readlink("/proc/self/exe", buf, PATH_MAX - 1);
if (len == -1 || len == PATH_MAX - 1) {