WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 26 of 26] libxl: xs_read accepts NULL for *len parame

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 26 of 26] libxl: xs_read accepts NULL for *len parameter
From: Ian Campbell <ian.campbell@xxxxxxxxxx>
Date: Mon, 16 Aug 2010 15:33:50 +0100
Cc: Ian Campbell <ian.campbell@xxxxxxxxxx>
Delivery-date: Mon, 16 Aug 2010 08:08:23 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1281969204@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1281969065 -3600
# Node ID 3619c13659ae1fa8adb283db84d7f1bedb8b651f
# Parent  5f7df0947ce97ba5ec604bacd09694ed399c2729
libxl: xs_read accepts NULL for *len parameter

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

diff -r 5f7df0947ce9 -r 3619c13659ae tools/libxl/libxl_xshelp.c
--- a/tools/libxl/libxl_xshelp.c        Mon Aug 16 15:31:05 2010 +0100
+++ b/tools/libxl/libxl_xshelp.c        Mon Aug 16 15:31:05 2010 +0100
@@ -110,10 +110,9 @@ char * libxl_xs_read(libxl_gc *gc, xs_tr
 char * libxl_xs_read(libxl_gc *gc, xs_transaction_t t, char *path)
 {
     libxl_ctx *ctx = libxl_gc_owner(gc);
-    unsigned int len;
     char *ptr;
 
-    ptr = xs_read(ctx->xsh, t, path, &len);
+    ptr = xs_read(ctx->xsh, t, path, NULL);
     if (ptr != NULL) {
         libxl_ptr_add(gc, ptr);
         return ptr;

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>