Re: [PATCH 06/14] tools/libs: stat: Use const whenever we point to literal strings

2021-05-11 Thread Anthony PERARD
On Mon, Apr 05, 2021 at 04:57:05PM +0100, Julien Grall wrote: > From: Julien Grall > > literal strings are not meant to be modified. So we should use const > char * rather than char * when we want to store a pointer to them. > > Signed-off-by: Julien Grall Reviewed-by: Anthony PERARD

[PATCH 06/14] tools/libs: stat: Use const whenever we point to literal strings

2021-04-05 Thread Julien Grall
From: Julien Grall literal strings are not meant to be modified. So we should use const char * rather than char * when we want to store a pointer to them. Signed-off-by: Julien Grall --- tools/libs/stat/xenstat_linux.c | 4 ++-- tools/libs/stat/xenstat_qmp.c | 12 ++-- 2 files