Re: [PATCH 12/14] tools/top: The string parameter in set_prompt() and set_delay() should be const

2021-05-11 Thread Anthony PERARD
On Mon, Apr 05, 2021 at 04:57:11PM +0100, Julien Grall wrote: > From: Julien Grall > > Neither string parameter in set_prompt() and set_delay() are meant to > be modified. In particular, new_prompt can point to a literal string. > > So mark the two parameters as const and propagate it. > > Sign

[PATCH 12/14] tools/top: The string parameter in set_prompt() and set_delay() should be const

2021-04-05 Thread Julien Grall
From: Julien Grall Neither string parameter in set_prompt() and set_delay() are meant to be modified. In particular, new_prompt can point to a literal string. So mark the two parameters as const and propagate it. Signed-off-by: Julien Grall --- tools/xentop/xentop.c | 12 ++-- 1 file