diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-10-06 18:32:19 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-10-06 18:32:19 +0000 |
commit | b6d8272551435098c716c546a5201206517e5da9 (patch) | |
tree | 223438db91511a96151bc1450143b4c649c40d08 /compat_vasprintf.c | |
parent | eec76d50a016de5e9c4e0d3504b148892a36aabf (diff) | |
download | mandoc-b6d8272551435098c716c546a5201206517e5da9.tar.gz mandoc-b6d8272551435098c716c546a5201206517e5da9.tar.zst mandoc-b6d8272551435098c716c546a5201206517e5da9.zip |
modernize style: "return" is not a function
Diffstat (limited to 'compat_vasprintf.c')
-rw-r--r-- | compat_vasprintf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compat_vasprintf.c b/compat_vasprintf.c index f5741427..9040822b 100644 --- a/compat_vasprintf.c +++ b/compat_vasprintf.c @@ -6,7 +6,7 @@ int dummy; #else -/* $Id: compat_vasprintf.c,v 1.2 2015/03/20 15:25:12 schwarze Exp $ */ +/* $Id: compat_vasprintf.c,v 1.3 2015/10/06 18:32:19 schwarze Exp $ */ /* * Copyright (c) 2015 Ingo Schwarze <schwarze@openbsd.org> * @@ -46,11 +46,11 @@ vasprintf(char **ret, const char *format, va_list ap) if (sz != -1 && (*ret = malloc(sz + 1)) != NULL) { if (vsnprintf(*ret, sz + 1, format, ap) == sz) - return(sz); + return sz; free(*ret); } *ret = NULL; - return(-1); + return -1; } #endif |