aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornicm <nicm>2017-04-19 12:44:29 +0000
committernicm <nicm>2017-04-19 12:44:29 +0000
commit689f4bfac22597e7fd2090373bdffe4df1ed5a34 (patch)
treea77262f7cdeabf39d9576fad8bc53d804dd853ba
parentfa6deb58664739a8073f188a4e3a88a122270537 (diff)
downloadrtmux-689f4bfac22597e7fd2090373bdffe4df1ed5a34.tar.gz
rtmux-689f4bfac22597e7fd2090373bdffe4df1ed5a34.tar.bz2
rtmux-689f4bfac22597e7fd2090373bdffe4df1ed5a34.zip
Style nits and a missing cast.
-rw-r--r--cmd-command-prompt.c2
-rw-r--r--grid.c2
-rw-r--r--tmux.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/cmd-command-prompt.c b/cmd-command-prompt.c
index 3cc5b2fb..41bbe01d 100644
--- a/cmd-command-prompt.c
+++ b/cmd-command-prompt.c
@@ -192,7 +192,7 @@ cmd_command_prompt_callback(void *data, const char *s, int done)
if (!done)
free(new_template);
- if (c->prompt_callbackfn != (void *)&cmd_command_prompt_callback)
+ if (c->prompt_callbackfn != cmd_command_prompt_callback)
return (1);
return (0);
}
diff --git a/grid.c b/grid.c
index 43145eae..af555e6d 100644
--- a/grid.c
+++ b/grid.c
@@ -89,7 +89,7 @@ grid_need_extended_cell(const struct grid_cell_entry *gce,
return (1);
if (gc->data.size != 1 || gc->data.width != 1)
return (1);
- if ((gc->fg & COLOUR_FLAG_RGB) ||(gc->bg & COLOUR_FLAG_RGB))
+ if ((gc->fg & COLOUR_FLAG_RGB) || (gc->bg & COLOUR_FLAG_RGB))
return (1);
return (0);
}
diff --git a/tmux.c b/tmux.c
index d836aacf..b2768fa1 100644
--- a/tmux.c
+++ b/tmux.c
@@ -120,7 +120,7 @@ make_label(const char *label)
uid = getuid();
if ((s = getenv("TMUX_TMPDIR")) != NULL && *s != '\0')
- xasprintf(&base, "%s/tmux-%u", s, uid);
+ xasprintf(&base, "%s/tmux-%ld", s, (long)uid);
else
xasprintf(&base, "%s/tmux-%ld", _PATH_TMP, (long)uid);