tools: Clean up usage of const type qualifier.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-06-12 11:26:51 +01:00
1 parent b2023adb2e
commit ea511d357e
5 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -405,7 +405,7 @@ static char *printnum(char *p, unsigned long num, int base)
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;
+1 -1
View File
@@ -290,7 +290,7 @@ static char *printnum(char *p, unsigned long num, int base)
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;
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -17,7 +17,7 @@ static xc_error_handler error_handler = xc_default_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);
+2 -2
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.