mirror of
https://github.com/tmux/tmux.git
synced 2025-01-08 08:58:47 +00:00
Style nits and a missing cast.
This commit is contained in:
parent
fa6deb5866
commit
689f4bfac2
@ -192,7 +192,7 @@ cmd_command_prompt_callback(void *data, const char *s, int done)
|
|||||||
|
|
||||||
if (!done)
|
if (!done)
|
||||||
free(new_template);
|
free(new_template);
|
||||||
if (c->prompt_callbackfn != (void *)&cmd_command_prompt_callback)
|
if (c->prompt_callbackfn != cmd_command_prompt_callback)
|
||||||
return (1);
|
return (1);
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
2
tmux.c
2
tmux.c
@ -120,7 +120,7 @@ make_label(const char *label)
|
|||||||
uid = getuid();
|
uid = getuid();
|
||||||
|
|
||||||
if ((s = getenv("TMUX_TMPDIR")) != NULL && *s != '\0')
|
if ((s = getenv("TMUX_TMPDIR")) != NULL && *s != '\0')
|
||||||
xasprintf(&base, "%s/tmux-%u", s, uid);
|
xasprintf(&base, "%s/tmux-%ld", s, (long)uid);
|
||||||
else
|
else
|
||||||
xasprintf(&base, "%s/tmux-%ld", _PATH_TMP, (long)uid);
|
xasprintf(&base, "%s/tmux-%ld", _PATH_TMP, (long)uid);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user