[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: Julien Grall <julien@xxxxxxx>
  • From: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Date: Tue, 11 May 2021 16:03:24 +0100
  • Authentication-results: esa2.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 15:03:30 +0000
  • Ironport-hdrordr: A9a23:wiBOm6v0tX0XhxJ9zhYdxSId7skDjNV00zEX/kB9WHVpm6yj+v xGUs566faUskd0ZJhEo7q90ca7Lk80maQa3WBzB8bGYOCFghrKEGgK1+KLrwEIcxeUygc379 YDT0ERMrzN5VgRt7eG3OG7eexQvOVuJsqT9JjjJ3QGd3AVV0l5hT0JbTpyiidNNXJ77ZxSLu v72uN34wCOVF4wdcqBCnwMT4H41qf2fMKPW29+O/Y/gjP+9Q+V1A==
  • Ironport-sdr: u+OdYE2d9v5fvHCQ/rLOBtmfpBb+Z1zmb0fNJ4datVPHJIMG7FnqzqqHd3FDZSb69orUOjrM/p yALvlKIVpT4zAwdyq3WlwPdWsLDlEY0Xz+awpOKn+tteFe01+YACThZcvi4DcbQwrWo737+ZZ0 cCqhnJ/cPEvJAkxcuD4jP6p0dyrFA2qCeoojy5Xu55reIS3/DLt7cG2wWIFph08g/VwpWjqoic 9xghSp9CdyvXbLm9olSvTpx+Nwe7dhQ/ZMlVtn1xOFTcpV/818rK+VCr8X8Kr5EfRtKeXNNCUM WyY=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Mon, Apr 05, 2021 at 04:57:05PM +0100, Julien Grall wrote:
> From: Julien Grall <jgrall@xxxxxxxxxx>
> 
> 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 <jgrall@xxxxxxxxxx>

Reviewed-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>

Thanks,

-- 
Anthony PERARD



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.