direct-io.hg
changeset 14296:f40b13ed0e05
Fix duplicate consts around xc_error declarations.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Signed-off-by: Ewan Mellor <ewan@xensource.com>
author | Ewan Mellor <ewan@xensource.com> |
---|---|
date | Thu Mar 08 22:33:47 2007 +0000 (2007-03-08) |
parents | 68c917da8b9b |
children | dfaca81ededb |
files | tools/libxc/xc_private.c tools/libxc/xenctrl.h tools/python/xen/lowlevel/xc/xc.c |
line diff
1.1 --- a/tools/libxc/xc_private.c Thu Mar 08 16:41:32 2007 +0000 1.2 +++ b/tools/libxc/xc_private.c Thu Mar 08 22:33:47 2007 +0000 1.3 @@ -23,7 +23,7 @@ void xc_default_error_handler(const xc_e 1.4 fprintf(stderr, "ERROR %s: %s\n", desc, err->message); 1.5 } 1.6 1.7 -const xc_error const *xc_get_last_error(void) 1.8 +const xc_error *xc_get_last_error(void) 1.9 { 1.10 return &last_error; 1.11 }
2.1 --- a/tools/libxc/xenctrl.h Thu Mar 08 16:41:32 2007 +0000 2.2 +++ b/tools/libxc/xenctrl.h Thu Mar 08 22:33:47 2007 +0000 2.3 @@ -770,19 +770,19 @@ typedef struct { 2.4 * data pointed to are only valid until the next call to 2.5 * libxc. 2.6 */ 2.7 -const xc_error const *xc_get_last_error(void); 2.8 +const xc_error *xc_get_last_error(void); 2.9 2.10 /* 2.11 * Clear the last error 2.12 */ 2.13 void xc_clear_last_error(void); 2.14 2.15 -typedef void (*xc_error_handler)(const xc_error const* err); 2.16 +typedef void (*xc_error_handler)(const xc_error * const err); 2.17 2.18 /* 2.19 * The default error handler which prints to stderr 2.20 */ 2.21 -void xc_default_error_handler(const xc_error const* err); 2.22 +void xc_default_error_handler(const xc_error * const err); 2.23 2.24 /* 2.25 * Convert an error code into a text description
3.1 --- a/tools/python/xen/lowlevel/xc/xc.c Thu Mar 08 16:41:32 2007 +0000 3.2 +++ b/tools/python/xen/lowlevel/xc/xc.c Thu Mar 08 22:33:47 2007 +0000 3.3 @@ -47,7 +47,7 @@ static PyObject *dom_op(XcObject *self, 3.4 static PyObject *pyxc_error_to_exception(void) 3.5 { 3.6 PyObject *pyerr; 3.7 - const xc_error const *err = xc_get_last_error(); 3.8 + const xc_error *err = xc_get_last_error(); 3.9 const char *desc = xc_error_code_to_desc(err->code); 3.10 3.11 if (err->code == XC_ERROR_NONE)