aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test-strtonum.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-strtonum.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-strtonum.c')
-rw-r--r--test-strtonum.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/test-strtonum.c b/test-strtonum.c
index ce70dd66..4b6cd3f5 100644
--- a/test-strtonum.c
+++ b/test-strtonum.c
@@ -1,4 +1,4 @@
-/* $Id: test-strtonum.c,v 1.1 2015/02/16 14:56:22 schwarze Exp $ */
+/* $Id: test-strtonum.c,v 1.2 2015/10/06 18:32:20 schwarze Exp $ */
/*
* Copyright (c) 2015 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -23,20 +23,20 @@ main(void)
const char *errstr;
if (strtonum("1", 0, 2, &errstr) != 1)
- return(1);
+ return 1;
if (errstr != NULL)
- return(2);
+ return 2;
if (strtonum("1x", 0, 2, &errstr) != 0)
- return(3);
+ return 3;
if (errstr == NULL)
- return(4);
+ return 4;
if (strtonum("2", 0, 1, &errstr) != 0)
- return(5);
+ return 5;
if (errstr == NULL)
- return(6);
+ return 6;
if (strtonum("0", 1, 2, &errstr) != 0)
- return(7);
+ return 7;
if (errstr == NULL)
- return(8);
- return(0);
+ return 8;
+ return 0;
}