Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit64e74e3

Browse files
author
Thomas G. Lockhart
committed
Fix boolean assignment of return values to use "FALSE" rather than the
mis-copied "NULL", which happens to have the same binary value.Previously, gcc gave non-fatal warnings.
1 parente1a4dde commit64e74e3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎src/backend/utils/adt/network.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*is for IP V4 CIDR notation, but prepared for V6: just
44
*add the necessary bits where the comments indicate.
55
*
6-
*$Id: network.c,v 1.7 1999/03/22 05:00:57 momjian Exp $
6+
*$Id: network.c,v 1.8 1999/04/15 02:20:50 thomas Exp $
77
*Jon Postel RIP 16 Oct 1998
88
*/
99

@@ -221,7 +221,7 @@ bool
221221
network_sub(inet*a1,inet*a2)
222222
{
223223
if (!PointerIsValid(a1)|| !PointerIsValid(a2))
224-
returnNULL;
224+
returnFALSE;
225225

226226
if ((ip_family(a1)==AF_INET)&& (ip_family(a2)==AF_INET))
227227
{
@@ -241,7 +241,7 @@ bool
241241
network_subeq(inet*a1,inet*a2)
242242
{
243243
if (!PointerIsValid(a1)|| !PointerIsValid(a2))
244-
returnNULL;
244+
returnFALSE;
245245

246246
if ((ip_family(a1)==AF_INET)&& (ip_family(a2)==AF_INET))
247247
{
@@ -261,7 +261,7 @@ bool
261261
network_sup(inet*a1,inet*a2)
262262
{
263263
if (!PointerIsValid(a1)|| !PointerIsValid(a2))
264-
returnNULL;
264+
returnFALSE;
265265

266266
if ((ip_family(a1)==AF_INET)&& (ip_family(a2)==AF_INET))
267267
{
@@ -281,7 +281,7 @@ bool
281281
network_supeq(inet*a1,inet*a2)
282282
{
283283
if (!PointerIsValid(a1)|| !PointerIsValid(a2))
284-
returnNULL;
284+
returnFALSE;
285285

286286
if ((ip_family(a1)==AF_INET)&& (ip_family(a2)==AF_INET))
287287
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp