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

Commit1a2b41f

Browse files
committed
Use bool for a boolean flag.
1 parent84aa797 commit1a2b41f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
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/0322:14:40 petere Exp $
9+
* $PostgreSQL: pgsql/src/backend/utils/adt/uuid.c,v 1.9 2008/11/0323:49:07 tgl Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -83,12 +83,13 @@ static void
8383
string_to_uuid(constchar*source,pg_uuid_t*uuid)
8484
{
8585
constchar*src=source;
86-
inti,braces=0;
86+
boolbraces= false;
87+
inti;
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
gotosyntax_error;
116-
++src;
117+
src++;
117118
}
118119

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp