Re: [Xen-devel] [PATCH v2 for-4.5 1/2] libxl: un-constify return value of libxl_basename

2014-12-03 Thread Ian Campbell
On Tue, 2014-12-02 at 18:44 +, Andrew Cooper wrote: On 01/12/14 11:31, Wei Liu wrote: The string returned is malloc'ed but marked as const. Signed-off-by: Wei Liu wei.l...@citrix.com Cc: Ian Campbell ian.campb...@citrix.com Cc: Ian Jackson ian.jack...@eu.citrix.com ---

Re: [Xen-devel] [PATCH v2 for-4.5 1/2] libxl: un-constify return value of libxl_basename

2014-12-02 Thread Andrew Cooper
On 01/12/14 11:31, Wei Liu wrote: The string returned is malloc'ed but marked as const. Signed-off-by: Wei Liu wei.l...@citrix.com Cc: Ian Campbell ian.campb...@citrix.com Cc: Ian Jackson ian.jack...@eu.citrix.com --- tools/libxl/libxl.h | 10 ++ tools/libxl/libxl_utils.c

[Xen-devel] [PATCH v2 for-4.5 1/2] libxl: un-constify return value of libxl_basename

2014-12-01 Thread Wei Liu
The string returned is malloc'ed but marked as const. Signed-off-by: Wei Liu wei.l...@citrix.com Cc: Ian Campbell ian.campb...@citrix.com Cc: Ian Jackson ian.jack...@eu.citrix.com --- tools/libxl/libxl.h | 10 ++ tools/libxl/libxl_utils.c |5 - tools/libxl/libxl_utils.h |