svn commit: r319904 - head/usr.bin/yes
Olivier Houchard
cognet at FreeBSD.org
Tue Jun 13 16:19:33 UTC 2017
Author: cognet
Date: Tue Jun 13 16:19:32 2017
New Revision: 319904
URL: https://svnweb.freebsd.org/changeset/base/319904
Log:
style(9) fixes.
Reported by: cem
Modified:
head/usr.bin/yes/yes.c
Modified: head/usr.bin/yes/yes.c
==============================================================================
--- head/usr.bin/yes/yes.c Tue Jun 13 15:50:16 2017 (r319903)
+++ head/usr.bin/yes/yes.c Tue Jun 13 16:19:32 2017 (r319904)
@@ -61,17 +61,14 @@ main(int argc, char **argv)
if (caph_limit_stdio() < 0 || (cap_enter() < 0 && errno != ENOSYS))
err(1, "capsicum");
- if (argc > 1)
- {
+ if (argc > 1) {
exp = argv[1];
explen = strlen(exp) + 1;
exp[explen - 1] = '\n';
}
- if (explen <= sizeof(buf))
- {
- while (buflen < sizeof(buf) - explen)
- {
+ if (explen <= sizeof(buf)) {
+ while (buflen < sizeof(buf) - explen) {
memcpy(buf + buflen, exp, explen);
buflen += explen;
}
More information about the svn-src-all
mailing list