Commit 7e97b419 authored by Bruce Momjian's avatar Bruce Momjian

Remove compiler warning by casting SNPRINTF() call to void.

Report from Gevik Babakhani.
parent 524d65d4
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
* *
* $PostgreSQL: pgsql/src/backend/utils/adt/inet_net_ntop.c,v 1.21 2005/10/15 02:49:28 momjian Exp $ * $PostgreSQL: pgsql/src/backend/utils/adt/inet_net_ntop.c,v 1.22 2006/04/24 19:51:13 momjian Exp $
*/ */
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
...@@ -289,7 +289,7 @@ inet_cidr_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size) ...@@ -289,7 +289,7 @@ inet_cidr_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size)
} }
} }
/* Format CIDR /width. */ /* Format CIDR /width. */
SPRINTF((cp, "/%u", bits)); (void) SPRINTF((cp, "/%u", bits));
if (strlen(outbuf) + 1 > size) if (strlen(outbuf) + 1 > size)
goto emsgsize; goto emsgsize;
strcpy(dst, outbuf); strcpy(dst, outbuf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment