diff options
| author | Tom Lane | 2003-09-05 23:07:21 +0000 |
|---|---|---|
| committer | Tom Lane | 2003-09-05 23:07:21 +0000 |
| commit | 92aa462247f361495660240fef22524552906866 (patch) | |
| tree | 8b9a5ef583646bfc93f9ad57708c1e1041ae39e4 /src/include/libpq | |
| parent | 3c9bb8886df7d56aaeb619abc246462fa809d946 (diff) | |
Second try at IPv4-to-v6 mapping code; avoid assuming that the struct
returned by getaddrinfo_all will have enough room for an IPv6 address.
Diffstat (limited to 'src/include/libpq')
| -rw-r--r-- | src/include/libpq/ip.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/libpq/ip.h b/src/include/libpq/ip.h index 9858faaddc9..32f7835c429 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.11 2003/09/05 20:31:36 tgl Exp $ + * $Id: ip.h,v 1.12 2003/09/05 23:07:21 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -30,7 +30,7 @@ extern int rangeSockAddr(const struct sockaddr_storage * addr, const struct sockaddr_storage * netaddr, const struct sockaddr_storage * netmask); -extern int SockAddr_cidr_mask(struct sockaddr_storage ** mask, +extern int SockAddr_cidr_mask(struct sockaddr_storage * mask, char *numbits, int family); #ifdef HAVE_IPV6 |
