[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 13/14] tools/xenmon: xenbaked: Mark const the field text in stat_map_t
- To: Julien Grall <julien@xxxxxxx>
- From: Anthony PERARD <anthony.perard@xxxxxxxxxx>
- Date: Tue, 11 May 2021 17:08:13 +0100
- Authentication-results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
- Cc: <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Julien Grall <jgrall@xxxxxxxxxx>, "Ian Jackson" <iwj@xxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
- Delivery-date: Tue, 11 May 2021 16:08:25 +0000
- Ironport-hdrordr: A9a23:PYFpc636sGwh1k3nOoPMiwqjBNEkLtp133Aq2lEZdPU1SK2lfq +V98jzuSWftN9zYh8dcLK7VJVoKEm0naKdibNwAV7IZmbbUQWTQb1f0Q==
- Ironport-sdr: kJGEdoc+Vyi45IScvXdSAb2d8Ykjr36AhAkSfOqwp0z86vfTqj3MBXFoWYds+W5WhEmPL3sPM9 R8iypIiGWFNNV2bQBHvMfc9F2nuoKfP28LeOHGJf70XnZG/VsBx4Bk86/D1Qz7a7WFGZkrdDC8 K6NQ9Si0nyI4v36eW9X2S+3o6H9nT7ItcQftwZdcapW0L2BukRpOqOkUNt2rCMZGS2C/wOcmsp l0t9G33BVyKbA/26o8QD0HKvs1PkuwDfr1M6H4m4fwi0y1k6wHB5z+IdxnyfsSObQ2Y3eb4zsu vtM=
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Mon, Apr 05, 2021 at 04:57:12PM +0100, Julien Grall wrote:
> From: Julien Grall <jgrall@xxxxxxxxxx>
>
> The field text in stat_map_t will point to string literals. So mark it
> as const to allow the compiler to catch any modified of the string.
>
> Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx>
Reviewed-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
Thanks,
--
Anthony PERARD
|