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] tools: Clean up usage of const type quali

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] tools: Clean up usage of const type qualifier.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 14 Jun 2007 12:54:40 -0700
Delivery-date: Thu, 14 Jun 2007 15:24:36 -0700
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 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] tools: Clean up usage of const type qualifier., Xen patchbot-unstable <=