0001-Use-C99-designator-in-the-rbtree-sentinel-definit-v2.patch
application/octet-stream
Filename: 0001-Use-C99-designator-in-the-rbtree-sentinel-definit-v2.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 v2-0001
Subject: Use C99 designator in the rbtree sentinel definition
| File | + | − |
|---|---|---|
| src/backend/lib/rbtree.c | 1 | 1 |
From 869222512c93cf104e11c0efd4dcfa2bed3af1f4 Mon Sep 17 00:00:00 2001
From: steve-chavez <stevechavezast@gmail.com>
Date: Tue, 28 Jun 2022 23:46:38 -0500
Subject: [PATCH 1/2] Use C99 designator in the rbtree sentinel definition
This change should improve the code readability.
---
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)