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

[Xen-changelog] [xen-unstable] tools: Clean up usage of const type qualifier.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1181644011 -3600
# Node ID feeca16435bfc3510e4329267758a5cfbd2a7c58
# Parent  9766af047b6cd10e4259a5c3bde3cee5c24785af
tools: Clean up usage of const type qualifier.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 tools/firmware/hvmloader/util.c     |    2 +-
 tools/firmware/rombios/32bit/util.c |    2 +-
 tools/firmware/vmxassist/util.c     |    4 ++--
 tools/libxc/xc_private.c            |    2 +-
 tools/libxc/xenctrl.h               |    4 ++--
 5 files changed, 7 insertions(+), 7 deletions(-)

diff -r 9766af047b6c -r feeca16435bf tools/firmware/hvmloader/util.c
--- a/tools/firmware/hvmloader/util.c   Tue Jun 12 11:04:27 2007 +0100
+++ b/tools/firmware/hvmloader/util.c   Tue Jun 12 11:26:51 2007 +0100
@@ -405,7 +405,7 @@ static char *printnum(char *p, unsigned 
     return p;
 }
 
-static void _doprint(void (*put)(char), char const *fmt, va_list ap)
+static void _doprint(void (*put)(char), const char *fmt, va_list ap)
 {
     register char *str, c;
     int lflag, zflag, nflag;
diff -r 9766af047b6c -r feeca16435bf tools/firmware/rombios/32bit/util.c
--- a/tools/firmware/rombios/32bit/util.c       Tue Jun 12 11:04:27 2007 +0100
+++ b/tools/firmware/rombios/32bit/util.c       Tue Jun 12 11:26:51 2007 +0100
@@ -290,7 +290,7 @@ static char *printnum(char *p, unsigned 
     return p;
 }
 
-static void _doprint(void (*put)(char), char const *fmt, va_list ap)
+static void _doprint(void (*put)(char), const char *fmt, va_list ap)
 {
     register char *str, c;
     int lflag, zflag, nflag;
diff -r 9766af047b6c -r feeca16435bf tools/firmware/vmxassist/util.c
--- a/tools/firmware/vmxassist/util.c   Tue Jun 12 11:04:27 2007 +0100
+++ b/tools/firmware/vmxassist/util.c   Tue Jun 12 11:26:51 2007 +0100
@@ -27,7 +27,7 @@
 
 static void putchar(int);
 static char *printnum(char *, unsigned long, int);
-static void _doprint(void (*)(int), char const *, va_list);
+static void _doprint(void (*)(int), const char *, va_list);
 
 void
 cpuid_addr_value(uint64_t addr, uint64_t *value)
@@ -321,7 +321,7 @@ putchar(int ch)
  * but still powerful enough for most tasks.
  */
 static void
-_doprint(void (*put)(int), char const *fmt, va_list ap)
+_doprint(void (*put)(int), const char *fmt, va_list ap)
 {
        register char *str, c;
        int lflag, zflag, nflag;
diff -r 9766af047b6c -r feeca16435bf tools/libxc/xc_private.c
--- a/tools/libxc/xc_private.c  Tue Jun 12 11:04:27 2007 +0100
+++ b/tools/libxc/xc_private.c  Tue Jun 12 11:26:51 2007 +0100
@@ -17,7 +17,7 @@ static xc_error_handler error_handler = 
 static xc_error_handler error_handler = NULL;
 #endif
 
-void xc_default_error_handler(const xc_error const *err)
+void xc_default_error_handler(const xc_error *err)
 {
     const char *desc = xc_error_code_to_desc(err->code);
     fprintf(stderr, "ERROR %s: %s\n", desc, err->message);
diff -r 9766af047b6c -r feeca16435bf tools/libxc/xenctrl.h
--- a/tools/libxc/xenctrl.h     Tue Jun 12 11:04:27 2007 +0100
+++ b/tools/libxc/xenctrl.h     Tue Jun 12 11:26:51 2007 +0100
@@ -823,12 +823,12 @@ const xc_error *xc_get_last_error(void);
  */
 void xc_clear_last_error(void);
 
-typedef void (*xc_error_handler)(const xc_error * const err);
+typedef void (*xc_error_handler)(const xc_error *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 *err);
 
 /*
  * Convert an error code into a text description

_______________________________________________
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®.