aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test-stringlist.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-stringlist.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-stringlist.c')
-rw-r--r--test-stringlist.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/test-stringlist.c b/test-stringlist.c
index 790ba095..7555d208 100644
--- a/test-stringlist.c
+++ b/test-stringlist.c
@@ -1,4 +1,4 @@
-/* $Id: test-stringlist.c,v 1.1 2015/05/20 22:22:59 schwarze Exp $ */
+/* $Id: test-stringlist.c,v 1.2 2015/10/06 18:32:20 schwarze Exp $ */
/*
* Copyright (c) 2015 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -24,14 +24,14 @@ main(void)
char teststr[] = "test";
if ((sl = sl_init()) == NULL)
- return(1);
+ return 1;
if (sl_add(sl, teststr))
- return(2);
+ return 2;
if (sl->sl_cur != 1)
- return(3);
+ return 3;
if (sl->sl_str[0] != teststr)
- return(4);
+ return 4;
sl_free(sl, 0);
- return(0);
+ return 0;
}