aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test-getsubopt.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-getsubopt.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-getsubopt.c')
-rw-r--r--test-getsubopt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test-getsubopt.c b/test-getsubopt.c
index b0835697..afcc5599 100644
--- a/test-getsubopt.c
+++ b/test-getsubopt.c
@@ -1,4 +1,4 @@
-/* $Id: test-getsubopt.c,v 1.3 2014/08/17 20:53:50 schwarze Exp $ */
+/* $Id: test-getsubopt.c,v 1.4 2015/10/06 18:32:20 schwarze Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -29,6 +29,6 @@ main(void)
char token0[] = "k";
char *const tokens[] = { token0, NULL };
char *value = NULL;
- return( ! (0 == getsubopt(&options, tokens, &value)
- && value == buf+2 && options == buf+3));
+ return ! (getsubopt(&options, tokens, &value) == 0
+ && value == buf+2 && options == buf+3);
}