More style nits.

pull/2172/head
nicm 2020-04-09 15:35:27 +00:00
parent 26f5dfbe46
commit a1fc8f8b23
4 changed files with 5 additions and 5 deletions

View File

@ -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)

View File

@ -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
View File

@ -224,7 +224,7 @@ getversion(void)
fatalx("uname failed");
xasprintf(&version, "openbsd-%s", u.release);
}
return version;
return (version);
}
int

View File

@ -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);
}