From: Ian Campbell Subject: Re: [PATCH 1/2] libxl: const-correctness for libxl_uuid2string Date: Fri, 30 Jul 2010 14:50:02 +0100 Message-ID: <1280497802.24292.1948.camel@zakaz.uk.xensource.com> References: <1280424691-15884-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1280424691-15884-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Thu, 2010-07-29 at 18:31 +0100, Ian Jackson wrote: > Signed-off-by: Ian Jackson Looks ok to me. Acked-by: Ian Campbell > --- > tools/libxl/libxl.h | 2 +- > tools/libxl/libxl_dom.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tools/libxl/libxl.h b/tools/libxl/libxl.h > index 191d1e1..3391491 100644 > --- a/tools/libxl/libxl.h > +++ b/tools/libxl/libxl.h > @@ -360,7 +360,7 @@ int libxl_run_bootloader(libxl_ctx *ctx, > libxl_device_disk *disk, > uint32_t domid); > > -char *libxl_uuid2string(libxl_ctx *ctx, uint8_t uuid[16]); > +char *libxl_uuid2string(libxl_ctx *ctx, const uint8_t uuid[16]); > /* 0 means ERROR_ENOMEM, which we have logged */ > > /* events handling */ > diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c > index b7ee27c..20a16e6 100644 > --- a/tools/libxl/libxl_dom.c > +++ b/tools/libxl/libxl_dom.c > @@ -427,7 +427,7 @@ int save_device_model(libxl_ctx *ctx, uint32_t domid, int fd) > return 0; > } > > -char *libxl_uuid2string(libxl_ctx *ctx, uint8_t uuid[16]) { > +char *libxl_uuid2string(libxl_ctx *ctx, const uint8_t uuid[16]) { > char *s = string_of_uuid(ctx, uuid); > if (!s) XL_LOG(ctx, XL_LOG_ERROR, "cannot allocate for uuid"); > return s;