diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2017-08-17 12:39:20 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2017-09-05 14:52:55 -0400 |
commit | 17273d059cd3a5cba818505b0d47a444c36a3513 (patch) | |
tree | 812c47b95d279e50e5d797852edd6664f217a0c8 /src/backend/utils/adt/inet_cidr_ntop.c | |
parent | ba26f5cf768a31e0cbdf5eb8675ee187ad35fd0b (diff) | |
download | postgresql-17273d059cd3a5cba818505b0d47a444c36a3513.tar.gz postgresql-17273d059cd3a5cba818505b0d47a444c36a3513.zip |
Remove unnecessary parentheses in return statements
The parenthesized style has only been used in a few modules. Change
that to use the style that is predominant across the whole tree.
Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
Reviewed-by: Ryan Murphy <ryanfmurphy@gmail.com>
Diffstat (limited to 'src/backend/utils/adt/inet_cidr_ntop.c')
-rw-r--r-- | src/backend/utils/adt/inet_cidr_ntop.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/backend/utils/adt/inet_cidr_ntop.c b/src/backend/utils/adt/inet_cidr_ntop.c index 2973d566587..30b3673789f 100644 --- a/src/backend/utils/adt/inet_cidr_ntop.c +++ b/src/backend/utils/adt/inet_cidr_ntop.c @@ -58,12 +58,12 @@ inet_cidr_ntop(int af, const void *src, int bits, char *dst, size_t size) switch (af) { case PGSQL_AF_INET: - return (inet_cidr_ntop_ipv4(src, bits, dst, size)); + return inet_cidr_ntop_ipv4(src, bits, dst, size); case PGSQL_AF_INET6: - return (inet_cidr_ntop_ipv6(src, bits, dst, size)); + return inet_cidr_ntop_ipv6(src, bits, dst, size); default: errno = EAFNOSUPPORT; - return (NULL); + return NULL; } } @@ -92,7 +92,7 @@ inet_cidr_ntop_ipv4(const u_char *src, int bits, char *dst, size_t size) if (bits < 0 || bits > 32) { errno = EINVAL; - return (NULL); + return NULL; } if (bits == 0) @@ -137,11 +137,11 @@ inet_cidr_ntop_ipv4(const u_char *src, int bits, char *dst, size_t size) if (size <= sizeof "/32") goto emsgsize; dst += SPRINTF((dst, "/%u", bits)); - return (odst); + return odst; emsgsize: errno = EMSGSIZE; - return (NULL); + return NULL; } /* @@ -182,7 +182,7 @@ inet_cidr_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size) if (bits < 0 || bits > 128) { errno = EINVAL; - return (NULL); + return NULL; } cp = outbuf; @@ -286,9 +286,9 @@ inet_cidr_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size) goto emsgsize; strcpy(dst, outbuf); - return (dst); + return dst; emsgsize: errno = EMSGSIZE; - return (NULL); + return NULL; } |