diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-08-25 00:41:34 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-08-25 00:41:34 +0900 |
| commit | 37d184d14136c9a9b5bdf3b62df87deea12dc947 (patch) | |
| tree | e2899375984950f6cf6cf7a1fc6ca1b43a77b9f5 /src/sys.c | |
| parent | 7f29d50e4558a700b7611dc72e87e7922ac6a345 (diff) | |
| download | ducc-37d184d14136c9a9b5bdf3b62df87deea12dc947.tar.gz ducc-37d184d14136c9a9b5bdf3b62df87deea12dc947.tar.zst ducc-37d184d14136c9a9b5bdf3b62df87deea12dc947.zip | |
feat: add static to file-local functions
Diffstat (limited to 'src/sys.c')
| -rw-r--r-- | src/sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |
