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

Commit 1a2b41f

Browse files
committed
Use bool for a boolean flag.
1 parent 84aa797 commit 1a2b41f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/backend/utils/adt/uuid.c

+7-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Copyright (c) 2007-2008, PostgreSQL Global Development Group
77
*
88
* IDENTIFICATION
9-
* $PostgreSQL: pgsql/src/backend/utils/adt/uuid.c,v 1.8 2008/11/03 22:14:40 petere Exp $
9+
* $PostgreSQL: pgsql/src/backend/utils/adt/uuid.c,v 1.9 2008/11/03 23:49:07 tgl Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -83,12 +83,13 @@ static void
8383
string_to_uuid(const char *source, pg_uuid_t *uuid)
8484
{
8585
const char *src = source;
86-
int i, braces = 0;
86+
bool braces = false;
87+
int i;
8788

8889
if (src[0] == '{')
8990
{
90-
++src;
91-
braces = 1;
91+
src++;
92+
braces = true;
9293
}
9394

9495
for (i = 0; i < UUID_LEN; i++)
@@ -111,9 +112,9 @@ string_to_uuid(const char *source, pg_uuid_t *uuid)
111112

112113
if (braces)
113114
{
114-
if (*src!= '}')
115+
if (*src != '}')
115116
goto syntax_error;
116-
++src;
117+
src++;
117118
}
118119

119120
if (*src != '\0')

0 commit comments

Comments
 (0)