0001-Use-C99-designator-in-the-rbtree-sentinel-definit-v3.patch
application/octet-stream
Filename: 0001-Use-C99-designator-in-the-rbtree-sentinel-definit-v3.patch
Type: application/octet-stream
Part: 0
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: format-patch
Series: patch v3-0001
Subject: Use C99 designator in the rbtree sentinel definition
| File | + | − |
|---|---|---|
| src/backend/lib/rbtree.c | 1 | 1 |
From 010901be69d4ab8eae93512104193afac00959fb Mon Sep 17 00:00:00 2001
From: Alexander Korotkov <akorotkov@postgresql.org>
Date: Thu, 7 Jul 2022 13:40:54 +0300
Subject: [PATCH 1/2] Use C99 designator in the rbtree sentinel definition
This change should improve the code readability.
Discussion: https://postgr.es/m/CAGRrpzYE8-7GCoaPjOiL9T_HY605MRax-2jgTtLq236uksZ1Sw%40mail.gmail.com
Author: Steve Chavez, Alexander Korotkov
Reviewed-by: Alexander Korotkov
---
src/backend/lib/rbtree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/backend/lib/rbtree.c b/src/backend/lib/rbtree.c
index a9981dbadad..e1cc4110bd4 100644
--- a/src/backend/lib/rbtree.c
+++ b/src/backend/lib/rbtree.c
@@ -62,7 +62,7 @@ struct RBTree
static RBTNode sentinel =
{
- RBTBLACK, RBTNIL, RBTNIL, NULL
+ .color = RBTBLACK,.left = RBTNIL,.right = RBTNIL,.parent = NULL
};
--
2.24.3 (Apple Git-128)