From cdfb3d99811d4b1c99c2e0c29ff8cba5043f0c91 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 9 Jun 2003 17:59:19 +0000 Subject: freeaddrinfo2() does need two parameters after all, per comment by Kurt Roeckx. Add some documentation to try to prevent others from repeating my mistake. --- src/include/libpq/ip.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/libpq/ip.h b/src/include/libpq/ip.h index 78f52376143..7e910d5cbb2 100644 --- a/src/include/libpq/ip.h +++ b/src/include/libpq/ip.h @@ -5,7 +5,7 @@ * * Copyright (c) 2003, PostgreSQL Global Development Group * - * $Id: ip.h,v 1.4 2003/06/08 17:43:00 tgl Exp $ + * $Id: ip.h,v 1.5 2003/06/09 17:59:19 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -19,7 +19,7 @@ extern int getaddrinfo2(const char *hostname, const char *servname, const struct addrinfo *hintp, struct addrinfo **result); -extern void freeaddrinfo2(struct addrinfo *ai); +extern void freeaddrinfo2(int hint_ai_family, struct addrinfo *ai); extern char *SockAddr_ntop(const SockAddr *sa, char *dst, size_t cnt, int v4conv); -- cgit v1.2.3