ia64/xen-unstable

changeset 15331:feeca16435bf

tools: Clean up usage of const type qualifier.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Tue Jun 12 11:26:51 2007 +0100 (2007-06-12)
parents 9766af047b6c
children e1c54c14220a
files tools/firmware/hvmloader/util.c tools/firmware/rombios/32bit/util.c tools/firmware/vmxassist/util.c tools/libxc/xc_private.c tools/libxc/xenctrl.h
line diff
     1.1 --- a/tools/firmware/hvmloader/util.c	Tue Jun 12 11:04:27 2007 +0100
     1.2 +++ b/tools/firmware/hvmloader/util.c	Tue Jun 12 11:26:51 2007 +0100
     1.3 @@ -405,7 +405,7 @@ static char *printnum(char *p, unsigned 
     1.4      return p;
     1.5  }
     1.6  
     1.7 -static void _doprint(void (*put)(char), char const *fmt, va_list ap)
     1.8 +static void _doprint(void (*put)(char), const char *fmt, va_list ap)
     1.9  {
    1.10      register char *str, c;
    1.11      int lflag, zflag, nflag;
     2.1 --- a/tools/firmware/rombios/32bit/util.c	Tue Jun 12 11:04:27 2007 +0100
     2.2 +++ b/tools/firmware/rombios/32bit/util.c	Tue Jun 12 11:26:51 2007 +0100
     2.3 @@ -290,7 +290,7 @@ static char *printnum(char *p, unsigned 
     2.4      return p;
     2.5  }
     2.6  
     2.7 -static void _doprint(void (*put)(char), char const *fmt, va_list ap)
     2.8 +static void _doprint(void (*put)(char), const char *fmt, va_list ap)
     2.9  {
    2.10      register char *str, c;
    2.11      int lflag, zflag, nflag;
     3.1 --- a/tools/firmware/vmxassist/util.c	Tue Jun 12 11:04:27 2007 +0100
     3.2 +++ b/tools/firmware/vmxassist/util.c	Tue Jun 12 11:26:51 2007 +0100
     3.3 @@ -27,7 +27,7 @@
     3.4  
     3.5  static void putchar(int);
     3.6  static char *printnum(char *, unsigned long, int);
     3.7 -static void _doprint(void (*)(int), char const *, va_list);
     3.8 +static void _doprint(void (*)(int), const char *, va_list);
     3.9  
    3.10  void
    3.11  cpuid_addr_value(uint64_t addr, uint64_t *value)
    3.12 @@ -321,7 +321,7 @@ putchar(int ch)
    3.13   * but still powerful enough for most tasks.
    3.14   */
    3.15  static void
    3.16 -_doprint(void (*put)(int), char const *fmt, va_list ap)
    3.17 +_doprint(void (*put)(int), const char *fmt, va_list ap)
    3.18  {
    3.19  	register char *str, c;
    3.20  	int lflag, zflag, nflag;
     4.1 --- a/tools/libxc/xc_private.c	Tue Jun 12 11:04:27 2007 +0100
     4.2 +++ b/tools/libxc/xc_private.c	Tue Jun 12 11:26:51 2007 +0100
     4.3 @@ -17,7 +17,7 @@ static xc_error_handler error_handler = 
     4.4  static xc_error_handler error_handler = NULL;
     4.5  #endif
     4.6  
     4.7 -void xc_default_error_handler(const xc_error const *err)
     4.8 +void xc_default_error_handler(const xc_error *err)
     4.9  {
    4.10      const char *desc = xc_error_code_to_desc(err->code);
    4.11      fprintf(stderr, "ERROR %s: %s\n", desc, err->message);
     5.1 --- a/tools/libxc/xenctrl.h	Tue Jun 12 11:04:27 2007 +0100
     5.2 +++ b/tools/libxc/xenctrl.h	Tue Jun 12 11:26:51 2007 +0100
     5.3 @@ -823,12 +823,12 @@ const xc_error *xc_get_last_error(void);
     5.4   */
     5.5  void xc_clear_last_error(void);
     5.6  
     5.7 -typedef void (*xc_error_handler)(const xc_error * const err);
     5.8 +typedef void (*xc_error_handler)(const xc_error *err);
     5.9  
    5.10  /*
    5.11   * The default error handler which prints to stderr
    5.12   */
    5.13 -void xc_default_error_handler(const xc_error * const err);
    5.14 +void xc_default_error_handler(const xc_error *err);
    5.15  
    5.16  /*
    5.17   * Convert an error code into a text description