aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2026-02-27 17:09:35 +0200
committerDylan Araps <dylan.araps@gmail.com>2026-02-27 19:10:49 +0200
commitc30c879ed3db8b733c3841ae6c1d364fd366ad8e (patch)
treefa4675538f0938bcf41cfebd8092e0d17848f1a3
parentfe3aeacd3466beba2c9e777e02d4dc70e0ba3a2b (diff)
misc: nit
-rw-r--r--dfm.c4
-rw-r--r--lib/util.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/dfm.c b/dfm.c
index 566eeb3..6162d3a 100644
--- a/dfm.c
+++ b/dfm.c
@@ -2004,7 +2004,7 @@ fm_path_cd(struct fm *p, const char *d, usize l)
p->pwd.l = 0;
str_push(&p->pwd, d, l);
str_terminate(&p->pwd);
- usize nl = fm_path_resolve(p->pwd.m, p->pwd.l);
+ usize nl = path_resolve(p->pwd.m, p->pwd.l);
p->pwd.l = nl;
int r = fm_path_open(p);
if (!r) {
@@ -2047,7 +2047,7 @@ fm_path_cd_relative(struct fm *p, const char *d, u8 l)
if (p->pwd.l > 1) str_push_c(&p->pwd, '/');
str_push(&p->pwd, d, l);
str_terminate(&p->pwd);
- usize nl = fm_path_resolve(p->pwd.m, p->pwd.l);
+ usize nl = path_resolve(p->pwd.m, p->pwd.l);
p->pwd.l = nl;
int r = fm_path_open(p);
if (!r) {
diff --git a/lib/util.h b/lib/util.h
index 819e939..9cbc547 100644
--- a/lib/util.h
+++ b/lib/util.h
@@ -311,7 +311,7 @@ tz_offset(void)
}
static inline usize
-fm_path_resolve(char *s, usize l)
+path_resolve(char *s, usize l)
{
char *m = s;
usize i = 0, w = 0;