Thread (26 messages) 26 messages, 2 authors, 2021-01-26

Re: [RFC v3 01/19] pip_stress: De-constify prio_min

flat view

From: John Kacur <jkacur@redhat.com>
Date: 2021-01-26 18:46:15


On Fri, 15 Jan 2021, Daniel Wagner wrote:
quoted hunk ↗ jump to hunk
This variables is updated by the result of
sched_get_priority_min(). Hence, it can't be const.

Signed-off-by: Daniel Wagner <redacted>
---
 src/pi_tests/pip_stress.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pi_tests/pip_stress.c b/src/pi_tests/pip_stress.c
index 4583aa40a6b8..8b91578f9ab8 100644
--- a/src/pi_tests/pip_stress.c
+++ b/src/pi_tests/pip_stress.c
@@ -65,7 +65,7 @@ struct State {
 struct State *statep;
 
 const int policy = SCHED_FIFO;
-const int prio_min;	/* Initialized for the minimum priority of policy */
+static int prio_min;	/* Initialized for the minimum priority of policy */
 
 static void usage(int error)
 {
-- 
2.29.2
Signed-off-by: John Kacur <jkacur@redhat.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help