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-changelog

[Xen-changelog] [xen-unstable] Fix duplicate consts around xc_error decl

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Fix duplicate consts around xc_error declarations.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 09 Mar 2007 11:30:10 -0800
Delivery-date: Fri, 09 Mar 2007 11:30:12 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1173393227 0
# Node ID f40b13ed0e05abeae6be10b81e0468b8b4c3a6ed
# Parent  68c917da8b9b3d378ee7e6b72bd0e5b0656d568f
Fix duplicate consts around xc_error declarations.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 tools/libxc/xc_private.c          |    2 +-
 tools/libxc/xenctrl.h             |    6 +++---
 tools/python/xen/lowlevel/xc/xc.c |    2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff -r 68c917da8b9b -r f40b13ed0e05 tools/libxc/xc_private.c
--- a/tools/libxc/xc_private.c  Thu Mar 08 16:41:32 2007 +0000
+++ b/tools/libxc/xc_private.c  Thu Mar 08 22:33:47 2007 +0000
@@ -23,7 +23,7 @@ void xc_default_error_handler(const xc_e
     fprintf(stderr, "ERROR %s: %s\n", desc, err->message);
 }
 
-const xc_error const *xc_get_last_error(void)
+const xc_error *xc_get_last_error(void)
 {
     return &last_error;
 }
diff -r 68c917da8b9b -r f40b13ed0e05 tools/libxc/xenctrl.h
--- a/tools/libxc/xenctrl.h     Thu Mar 08 16:41:32 2007 +0000
+++ b/tools/libxc/xenctrl.h     Thu Mar 08 22:33:47 2007 +0000
@@ -770,19 +770,19 @@ typedef struct {
  * data pointed to are only valid until the next call to
  * libxc.
  */
-const xc_error const *xc_get_last_error(void);
+const xc_error *xc_get_last_error(void);
 
 /*
  * Clear the last error
  */
 void xc_clear_last_error(void);
 
-typedef void (*xc_error_handler)(const xc_error const* err);
+typedef void (*xc_error_handler)(const xc_error * const err);
 
 /*
  * The default error handler which prints to stderr
  */
-void xc_default_error_handler(const xc_error const* err);
+void xc_default_error_handler(const xc_error * const err);
 
 /*
  * Convert an error code into a text description
diff -r 68c917da8b9b -r f40b13ed0e05 tools/python/xen/lowlevel/xc/xc.c
--- a/tools/python/xen/lowlevel/xc/xc.c Thu Mar 08 16:41:32 2007 +0000
+++ b/tools/python/xen/lowlevel/xc/xc.c Thu Mar 08 22:33:47 2007 +0000
@@ -47,7 +47,7 @@ static PyObject *pyxc_error_to_exception
 static PyObject *pyxc_error_to_exception(void)
 {
     PyObject *pyerr;
-    const xc_error const *err = xc_get_last_error();
+    const xc_error *err = xc_get_last_error();
     const char *desc = xc_error_code_to_desc(err->code);
 
     if (err->code == XC_ERROR_NONE)

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Fix duplicate consts around xc_error declarations., Xen patchbot-unstable <=