[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.