summaryrefslogtreecommitdiff
path: root/lib/printf/vfprintf.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2020-02-10 18:49:06 -0300
committerGitHub <noreply@github.com>2020-02-10 18:49:06 -0300
commit4b08a72ed109220fa2ae43956b1e51f299b02471 (patch)
treedebf6789280ad8a235573a39cb6f0c416d53575c /lib/printf/vfprintf.c
parentc2c4b412fa116cddbb7c6734fd8c4c7281c566f2 (diff)
parent95f7965d09a6eb4447c0de5a679114492cac3f37 (diff)
Merge pull request #5763 from ton31337/fix/return_without_parent
*: Remove parenthesis on return for constants
Diffstat (limited to 'lib/printf/vfprintf.c')
-rw-r--r--lib/printf/vfprintf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/printf/vfprintf.c b/lib/printf/vfprintf.c
index 07df6dd8fe..6ffccb3811 100644
--- a/lib/printf/vfprintf.c
+++ b/lib/printf/vfprintf.c
@@ -94,7 +94,7 @@ __wcsconv(wchar_t *wcsarg, int prec)
mbs = initial;
nbytes = wcsrtombs(NULL, (const wchar_t **)&p, 0, &mbs);
if (nbytes == (size_t)-1)
- return (NULL);
+ return NULL;
} else {
/*
* Optimisation: if the output precision is small enough,
@@ -117,7 +117,7 @@ __wcsconv(wchar_t *wcsarg, int prec)
}
}
if ((convbuf = malloc(nbytes + 1)) == NULL)
- return (NULL);
+ return NULL;
/* Fill the output buffer. */
p = wcsarg;
@@ -125,7 +125,7 @@ __wcsconv(wchar_t *wcsarg, int prec)
if ((nbytes = wcsrtombs(convbuf, (const wchar_t **)&p,
nbytes, &mbs)) == (size_t)-1) {
free(convbuf);
- return (NULL);
+ return NULL;
}
convbuf[nbytes] = '\0';
return (convbuf);