aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test-strsep.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
commitb6d8272551435098c716c546a5201206517e5da9 (patch)
tree223438db91511a96151bc1450143b4c649c40d08 /test-strsep.c
parenteec76d50a016de5e9c4e0d3504b148892a36aabf (diff)
downloadmandoc-b6d8272551435098c716c546a5201206517e5da9.tar.gz
mandoc-b6d8272551435098c716c546a5201206517e5da9.tar.zst
mandoc-b6d8272551435098c716c546a5201206517e5da9.zip
modernize style: "return" is not a function
Diffstat (limited to 'test-strsep.c')
-rw-r--r--test-strsep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-strsep.c b/test-strsep.c
index 4c57c13e..18bbb109 100644
--- a/test-strsep.c
+++ b/test-strsep.c
@@ -6,5 +6,5 @@ main(void)
char buf[6] = "aybxc";
char *workp = buf;
char *retp = strsep(&workp, "xy");
- return( ! (retp == buf && '\0' == buf[1] && buf + 2 == workp));
+ return ! (retp == buf && buf[1] == '\0' && workp == buf + 2);
}