Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
e43094b1
Commit
e43094b1
authored
Mar 21, 2003
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compile warning.
parent
e02f8183
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/backend/utils/adt/network.c
src/backend/utils/adt/network.c
+2
-3
src/include/utils/builtins.h
src/include/utils/builtins.h
+2
-1
No files found.
src/backend/utils/adt/network.c
View file @
e43094b1
...
@@ -3,7 +3,7 @@
...
@@ -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)
...
@@ -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
)
{
{
...
...
src/include/utils/builtins.h
View file @
e43094b1
...
@@ -7,7 +7,7 @@
...
@@ -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.2
09 2003/03/20 18:58:02 momjian
Exp $
* $Id: builtins.h,v 1.2
10 2003/03/21 23:18:51 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -568,6 +568,7 @@ extern Datum network_sup(PG_FUNCTION_ARGS);
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment