summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut2023-01-19 08:45:34 +0000
committerPeter Eisentraut2023-01-19 08:45:34 +0000
commit48880840f18cb75fcaecc77b5e7816b92c27157b (patch)
treefe2b01dea24186b2ace292751d0e9789d1e0a932 /src
parent4f74f5641d53559ec44e74d5bf552e167fdd5d20 (diff)
Constify proclist.h
This is a follow-up to c8ad4d81. Author: AleksanderĀ Alekseev Discussion: https://www.postgresql.org/message-id/flat/CAJ7c6TM084Ai_8%3DfZaWtULJBLtT1bgzL%3Dk9vHMYom3eyZsekAA%40mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r--src/include/storage/proclist.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/storage/proclist.h b/src/include/storage/proclist.h
index 6ef896500ff..e7d00e5ce12 100644
--- a/src/include/storage/proclist.h
+++ b/src/include/storage/proclist.h
@@ -35,7 +35,7 @@ proclist_init(proclist_head *list)
* Is the list empty?
*/
static inline bool
-proclist_is_empty(proclist_head *list)
+proclist_is_empty(const proclist_head *list)
{
return list->head == INVALID_PGPROCNO;
}
@@ -143,10 +143,10 @@ proclist_delete_offset(proclist_head *list, int procno, size_t node_offset)
* so that the only possibilities are that it is in this list or none.
*/
static inline bool
-proclist_contains_offset(proclist_head *list, int procno,
+proclist_contains_offset(const proclist_head *list, int procno,
size_t node_offset)
{
- proclist_node *node = proclist_node_get(procno, node_offset);
+ const proclist_node *node = proclist_node_get(procno, node_offset);
/* If it's not in any list, it's definitely not in this one. */
if (node->prev == 0 && node->next == 0)