mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03:00
Fix compile warning.
This commit is contained in:
parent
e02f818311
commit
e43094b124
@ -3,7 +3,7 @@
|
|||||||
* is for IP V4 CIDR notation, but prepared for V6: just
|
* is for IP V4 CIDR notation, but prepared for V6: just
|
||||||
* add the necessary bits where the comments indicate.
|
* add the necessary bits where the comments indicate.
|
||||||
*
|
*
|
||||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/network.c,v 1.39 2003/03/21 21:54:29 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/utils/adt/network.c,v 1.40 2003/03/21 23:18:52 tgl Exp $
|
||||||
*
|
*
|
||||||
* Jon Postel RIP 16 Oct 1998
|
* Jon Postel RIP 16 Oct 1998
|
||||||
*/
|
*/
|
||||||
@ -611,9 +611,8 @@ network_hostmask(PG_FUNCTION_ARGS)
|
|||||||
inet *ip = PG_GETARG_INET_P(0);
|
inet *ip = PG_GETARG_INET_P(0);
|
||||||
inet *dst;
|
inet *dst;
|
||||||
|
|
||||||
dst = (inet *) palloc(VARHDRSZ + sizeof(inet_struct));
|
|
||||||
/* make sure any unused bits are zeroed */
|
/* make sure any unused bits are zeroed */
|
||||||
MemSet(dst, 0, VARHDRSZ + sizeof(inet_struct));
|
dst = (inet *) palloc0(VARHDRSZ + sizeof(inet_struct));
|
||||||
|
|
||||||
if (ip_family(ip) == AF_INET)
|
if (ip_family(ip) == AF_INET)
|
||||||
{
|
{
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: builtins.h,v 1.209 2003/03/20 18:58:02 momjian Exp $
|
* $Id: builtins.h,v 1.210 2003/03/21 23:18:51 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -568,6 +568,7 @@ extern Datum network_sup(PG_FUNCTION_ARGS);
|
|||||||
extern Datum network_supeq(PG_FUNCTION_ARGS);
|
extern Datum network_supeq(PG_FUNCTION_ARGS);
|
||||||
extern Datum network_network(PG_FUNCTION_ARGS);
|
extern Datum network_network(PG_FUNCTION_ARGS);
|
||||||
extern Datum network_netmask(PG_FUNCTION_ARGS);
|
extern Datum network_netmask(PG_FUNCTION_ARGS);
|
||||||
|
extern Datum network_hostmask(PG_FUNCTION_ARGS);
|
||||||
extern Datum network_masklen(PG_FUNCTION_ARGS);
|
extern Datum network_masklen(PG_FUNCTION_ARGS);
|
||||||
extern Datum network_broadcast(PG_FUNCTION_ARGS);
|
extern Datum network_broadcast(PG_FUNCTION_ARGS);
|
||||||
extern Datum network_host(PG_FUNCTION_ARGS);
|
extern Datum network_host(PG_FUNCTION_ARGS);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user