mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
More style nits.
This commit is contained in:
@ -804,7 +804,7 @@ format_width(const char *expanded)
|
|||||||
if (cp[0] == '#' && cp[1] == '[') {
|
if (cp[0] == '#' && cp[1] == '[') {
|
||||||
end = format_skip(cp + 2, "]");
|
end = format_skip(cp + 2, "]");
|
||||||
if (end == NULL)
|
if (end == NULL)
|
||||||
return 0;
|
return (0);
|
||||||
cp = end + 1;
|
cp = end + 1;
|
||||||
} else if ((more = utf8_open(&ud, *cp)) == UTF8_MORE) {
|
} else if ((more = utf8_open(&ud, *cp)) == UTF8_MORE) {
|
||||||
while (*++cp != '\0' && more == 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);
|
return (NULL);
|
||||||
}
|
}
|
||||||
*s = cp + 1;
|
*s = cp + 1;
|
||||||
return list;
|
return (list);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Match against an fnmatch(3) pattern or regular expression. */
|
/* 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(right);
|
||||||
free(left);
|
free(left);
|
||||||
return value;
|
return (value);
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
free(right);
|
free(right);
|
||||||
|
2
tmux.c
2
tmux.c
@ -224,7 +224,7 @@ getversion(void)
|
|||||||
fatalx("uname failed");
|
fatalx("uname failed");
|
||||||
xasprintf(&version, "openbsd-%s", u.release);
|
xasprintf(&version, "openbsd-%s", u.release);
|
||||||
}
|
}
|
||||||
return version;
|
return (version);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -833,7 +833,7 @@ window_tree_search(__unused void *modedata, void *itemdata, const char *ss)
|
|||||||
return (0);
|
return (0);
|
||||||
retval = (strstr(cmd, ss) != NULL);
|
retval = (strstr(cmd, ss) != NULL);
|
||||||
free(cmd);
|
free(cmd);
|
||||||
return retval;
|
return (retval);
|
||||||
}
|
}
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user