aboutsummaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
Diffstat (limited to 'format.c')
-rw-r--r--format.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/format.c b/format.c
index 981161b3..5e04a6a2 100644
--- a/format.c
+++ b/format.c
@@ -811,7 +811,7 @@ format_cb_current_command(struct format_tree *ft)
if (wp == NULL || wp->shell == NULL)
return (NULL);
- cmd = get_proc_name(wp->fd, wp->tty);
+ cmd = osdep_get_name(wp->fd, wp->tty);
if (cmd == NULL || *cmd == '\0') {
free(cmd);
cmd = cmd_stringify_argv(wp->argc, wp->argv);
@@ -835,7 +835,7 @@ format_cb_current_path(struct format_tree *ft)
if (wp == NULL)
return (NULL);
- cwd = get_proc_cwd(wp->fd);
+ cwd = osdep_get_cwd(wp->fd);
if (cwd == NULL)
return (NULL);
return (xstrdup(cwd));
@@ -2597,7 +2597,7 @@ format_cb_user(__unused struct format_tree *ft)
if ((pw = getpwuid(getuid())) != NULL)
return (xstrdup(pw->pw_name));
- return NULL;
+ return (NULL);
}
/* Format table type. */