# Re: \[RFC v3 01/19\] pip\_stress: De-constify prio\_min

- From: John Kacur \<jkacur@redhat.com\>
- Date: 2021-01-26 18:46:15 
- List: linux-rt-users
- Page: https://ratatoskr.run/linux-rt-users/2021/01/16488335
- Thread: https://ratatoskr.run/linux-rt-users/2021/01/16488249/t.md

```text


On Fri, 15 Jan 2021, Daniel Wagner wrote:

> 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>
```
