summaryrefslogtreecommitdiffstats
path: root/test-strlcat.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-10-06 18:32:19 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-10-06 18:32:19 +0000
commitcdd9965f2080354017315270cbc3dc2da6378df9 (patch)
treeabceb46c894355584ad94178001ebb10ff35db04 /test-strlcat.c
parent2c5e2d1085930e82ce52bf9402182a0630e8f39d (diff)
downloadmandoc-cdd9965f2080354017315270cbc3dc2da6378df9.tar.gz
modernize style: "return" is not a function
Diffstat (limited to 'test-strlcat.c')
-rw-r--r--test-strlcat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test-strlcat.c b/test-strlcat.c
index b74ce6f4..48ab38a4 100644
--- a/test-strlcat.c
+++ b/test-strlcat.c
@@ -4,6 +4,6 @@ int
main(void)
{
char buf[3] = "a";
- return( ! (2 == strlcat(buf, "b", sizeof(buf)) &&
- 'a' == buf[0] && 'b' == buf[1] && '\0' == buf[2]));
+ return ! (strlcat(buf, "b", sizeof(buf)) == 2 &&
+ buf[0] == 'a' && buf[1] == 'b' && buf[2] == '\0');
}