aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test-vasprintf.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-vasprintf.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-vasprintf.c')
-rw-r--r--test-vasprintf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test-vasprintf.c b/test-vasprintf.c
index 1b2544a4..bdb4408e 100644
--- a/test-vasprintf.c
+++ b/test-vasprintf.c
@@ -1,4 +1,4 @@
-/* $Id: test-vasprintf.c,v 1.2 2015/03/20 15:32:02 schwarze Exp $ */
+/* $Id: test-vasprintf.c,v 1.3 2015/10/06 18:32:20 schwarze Exp $ */
/*
* Copyright (c) 2015 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -33,7 +33,7 @@ testfunc(char **ret, const char *format, ...)
irc = vasprintf(ret, format, ap);
va_end(ap);
- return(irc);
+ return irc;
}
int
@@ -42,8 +42,8 @@ main(void)
char *ret;
if (testfunc(&ret, "%s.", "Text") != 5)
- return(1);
+ return 1;
if (strcmp(ret, "Text."))
- return(2);
- return(0);
+ return 2;
+ return 0;
}