diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2023-01-28 01:02:25 -0500 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-28 08:32:23 +0100 |
commit | 0f0be7f75153923afb3241b07b89773c97f92022 (patch) | |
tree | 9a928ea3038f77ff75790a9a6d1974e43fc12419 /xen/block.c | |
parent | e6fec85fbd4ef5b54353c4b4eda2b4f2b5484a26 (diff) | |
download | gnumach-0f0be7f75153923afb3241b07b89773c97f92022.tar.gz gnumach-0f0be7f75153923afb3241b07b89773c97f92022.tar.bz2 gnumach-0f0be7f75153923afb3241b07b89773c97f92022.zip |
Fix compiler warnings
* i386/xen/xen.c: Move failsafe_callback_regs to header file and include
xen/xen.h
* xen/block.c: `name` must be const. Fix format string.
* xen/console.c: Move hyp_console_write and inline it in the header.
Use static qualifier whenever possible. Cast to interrupt_handler_fn.
* xen/console.h: Define hyp_console_write as inline function.
* xen/evt.c: Avoid old style declaration and use interrupt_handler_fn.
* xen/evt.h: Use interrupt_handler_fn.
* xen/net.c: Use static. Use correct format and make `name` const.
* xen/time.c: Avoid old style declarations by adding void to the
parameter list.
* xen/xen.c: Use static. Use interrupt_handler_fn. Delete `_hyp_halt`
and `_hyp_todo`.
* xen/xen.h: Define hyp_failsafe_c_callback here to make sure we have
the prototype.
Message-Id: <Y9S6cTHziR/edeFu@jupiter.tail36e24.ts.net>
Diffstat (limited to 'xen/block.c')
-rw-r--r-- | xen/block.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/block.c b/xen/block.c index 84fe4449..7e9db26f 100644 --- a/xen/block.c +++ b/xen/block.c @@ -349,7 +349,7 @@ device_close(void *devp) static io_return_t device_open (ipc_port_t reply_port, mach_msg_type_name_t reply_port_type, - dev_mode_t mode, char *name, device_t *devp /* out */) + dev_mode_t mode, const char *name, device_t *devp /* out */) { int i; ipc_port_t port, notify; @@ -666,7 +666,7 @@ device_write(void *d, ipc_port_t reply_port, hyp_grant_takeback(gref[j]); if (err) { - printf("error writing %u bytes at sector %d\n", count, bn); + printf("error writing %u bytes at sector %ld\n", count, bn); break; } } |