debuggers.hg

changeset 21942:64fa1a9c723c

libxl: const-correctness for libxl_uuid2string

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Ian Jackson <Ian.Jackson@eu.citrix.com>
date Fri Jul 30 15:12:10 2010 +0100 (2010-07-30)
parents de62cfdd7b9f
children 84f8ad68bc58
files tools/libxl/libxl.h tools/libxl/libxl_dom.c
line diff
     1.1 --- a/tools/libxl/libxl.h	Fri Jul 30 14:28:39 2010 +0100
     1.2 +++ b/tools/libxl/libxl.h	Fri Jul 30 15:12:10 2010 +0100
     1.3 @@ -360,7 +360,7 @@ int libxl_run_bootloader(libxl_ctx *ctx,
     1.4                           libxl_device_disk *disk,
     1.5                           uint32_t domid);
     1.6  
     1.7 -char *libxl_uuid2string(libxl_ctx *ctx, uint8_t uuid[16]);
     1.8 +char *libxl_uuid2string(libxl_ctx *ctx, const uint8_t uuid[16]);
     1.9    /* 0 means ERROR_ENOMEM, which we have logged */
    1.10  
    1.11  /* events handling */
     2.1 --- a/tools/libxl/libxl_dom.c	Fri Jul 30 14:28:39 2010 +0100
     2.2 +++ b/tools/libxl/libxl_dom.c	Fri Jul 30 15:12:10 2010 +0100
     2.3 @@ -427,7 +427,7 @@ int save_device_model(libxl_ctx *ctx, ui
     2.4      return 0;
     2.5  }
     2.6  
     2.7 -char *libxl_uuid2string(libxl_ctx *ctx, uint8_t uuid[16]) {
     2.8 +char *libxl_uuid2string(libxl_ctx *ctx, const uint8_t uuid[16]) {
     2.9      char *s = string_of_uuid(ctx, uuid);
    2.10      if (!s) XL_LOG(ctx, XL_LOG_ERROR, "cannot allocate for uuid");
    2.11      return s;