mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 19:58:48 +00:00
More style nits.
This commit is contained in:
parent
26f5dfbe46
commit
a1fc8f8b23
@ -804,7 +804,7 @@ format_width(const char *expanded)
|
||||
if (cp[0] == '#' && cp[1] == '[') {
|
||||
end = format_skip(cp + 2, "]");
|
||||
if (end == NULL)
|
||||
return 0;
|
||||
return (0);
|
||||
cp = end + 1;
|
||||
} else if ((more = utf8_open(&ud, *cp)) == UTF8_MORE) {
|
||||
while (*++cp != '\0' && more == UTF8_MORE)
|
||||
|
4
format.c
4
format.c
@ -1617,7 +1617,7 @@ format_build_modifiers(struct format_tree *ft, const char **s, u_int *count)
|
||||
return (NULL);
|
||||
}
|
||||
*s = cp + 1;
|
||||
return list;
|
||||
return (list);
|
||||
}
|
||||
|
||||
/* Match against an fnmatch(3) pattern or regular expression. */
|
||||
@ -1909,7 +1909,7 @@ format_replace_expression(struct format_modifier *mexp, struct format_tree *ft,
|
||||
|
||||
free(right);
|
||||
free(left);
|
||||
return value;
|
||||
return (value);
|
||||
|
||||
fail:
|
||||
free(right);
|
||||
|
2
tmux.c
2
tmux.c
@ -224,7 +224,7 @@ getversion(void)
|
||||
fatalx("uname failed");
|
||||
xasprintf(&version, "openbsd-%s", u.release);
|
||||
}
|
||||
return version;
|
||||
return (version);
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -833,7 +833,7 @@ window_tree_search(__unused void *modedata, void *itemdata, const char *ss)
|
||||
return (0);
|
||||
retval = (strstr(cmd, ss) != NULL);
|
||||
free(cmd);
|
||||
return retval;
|
||||
return (retval);
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user