From b6d8272551435098c716c546a5201206517e5da9 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 6 Oct 2015 18:32:19 +0000 Subject: modernize style: "return" is not a function --- compat_vasprintf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compat_vasprintf.c') 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 * @@ -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 -- cgit v1.2.3-56-ge451