Skip to content

Commit c9b7273

Browse files
committed
Don't use 'bool' as a struct member name in help_config.c.
Doing so doesn't work if bool is a macro rather than a typedef. Although c.h spends some effort to support configurations where bool is a preexisting macro, help_config.c has existed this way since 2003 (b700a6), and there have not been any reports of problems. Backpatch anyway since this is as riskless as it gets. Discussion: 20150812084351.GD8470@awork2.anarazel.de Backpatch: 9.0-master
1 parent 2360f01 commit c9b7273

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/misc/help_config.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
typedef union
3232
{
3333
struct config_generic generic;
34-
struct config_bool bool;
34+
struct config_bool _bool;
3535
struct config_real real;
3636
struct config_int integer;
3737
struct config_string string;
@@ -98,7 +98,7 @@ printMixedStruct(mixedStruct *structToPrint)
9898

9999
case PGC_BOOL:
100100
printf("BOOLEAN\t%s\t\t\t",
101-
(structToPrint->bool.reset_val == 0) ?
101+
(structToPrint->_bool.reset_val == 0) ?
102102
"FALSE" : "TRUE");
103103
break;
104104

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy