Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 64e74e3

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 parent e1a4dde commit 64e74e3

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-
return NULL;
224+
return FALSE;
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-
return NULL;
244+
return FALSE;
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-
return NULL;
264+
return FALSE;
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-
return NULL;
284+
return FALSE;
285285

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

0 commit comments

Comments
 (0)