Skip to content

Commit 4888084

Browse files
committed
Constify proclist.h
This is a follow-up to c8ad4d8. Author: Aleksander Alekseev Discussion: https://www.postgresql.org/message-id/flat/CAJ7c6TM084Ai_8%3DfZaWtULJBLtT1bgzL%3Dk9vHMYom3eyZsekAA%40mail.gmail.com
1 parent 4f74f56 commit 4888084

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/include/storage/proclist.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ proclist_init(proclist_head *list)
3535
* Is the list empty?
3636
*/
3737
static inline bool
38-
proclist_is_empty(proclist_head *list)
38+
proclist_is_empty(const proclist_head *list)
3939
{
4040
return list->head == INVALID_PGPROCNO;
4141
}
@@ -143,10 +143,10 @@ proclist_delete_offset(proclist_head *list, int procno, size_t node_offset)
143143
* so that the only possibilities are that it is in this list or none.
144144
*/
145145
static inline bool
146-
proclist_contains_offset(proclist_head *list, int procno,
146+
proclist_contains_offset(const proclist_head *list, int procno,
147147
size_t node_offset)
148148
{
149-
proclist_node *node = proclist_node_get(procno, node_offset);
149+
const proclist_node *node = proclist_node_get(procno, node_offset);
150150

151151
/* If it's not in any list, it's definitely not in this one. */
152152
if (node->prev == 0 && node->next == 0)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy