[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH gnumach 04/16] Cast host_get_time() arguments to fix warnings
From: |
Guillem Jover |
Subject: |
[PATCH gnumach 04/16] Cast host_get_time() arguments to fix warnings |
Date: |
Tue, 30 Aug 2011 03:09:30 +0200 |
* linux/dev/glue/misc.c (do_gettimeofday): Cast arguments to
`host_get_time'.
---
linux/dev/glue/misc.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/linux/dev/glue/misc.c b/linux/dev/glue/misc.c
index d8ca3c2..a994cc6 100644
--- a/linux/dev/glue/misc.c
+++ b/linux/dev/glue/misc.c
@@ -229,7 +229,12 @@ add_blkdev_randomness (int major)
void
do_gettimeofday (struct timeval *tv)
{
- host_get_time (1, tv);
+ /*
+ * XXX: The first argument should be mach_host_self (), but that's too
+ * expensive, and the host argument is not used by host_get_time (),
+ * only checked not to be HOST_NULL.
+ */
+ host_get_time ((host_t) 1, (time_value_t *) tv);
}
int
--
1.7.5.4
- [PATCH gnumach 03/16] Cast function timeout() argument to fix a warning, (continued)
- [PATCH gnumach 03/16] Cast function timeout() argument to fix a warning, Guillem Jover, 2011/08/29
- [PATCH gnumach 02/16] Return a value on non-void function, Guillem Jover, 2011/08/29
- [PATCH gnumach 14/16] Correct MiG Mach types to fix compilation warnings, Guillem Jover, 2011/08/29
- [PATCH gnumach 12/16] Move <linux/init.h> from linux/pcmcia-cs to linux/src, Guillem Jover, 2011/08/29
- [PATCH gnumach 07/16] Add linux_timer_intr function declaration, Guillem Jover, 2011/08/29
- [PATCH gnumach 04/16] Cast host_get_time() arguments to fix warnings,
Guillem Jover <=
- [PATCH gnumach 16/16] Fix undefined operation on assigning self pre-incremented variable, Guillem Jover, 2011/08/29
- [PATCH gnumach 06/16] Add missing headers, Guillem Jover, 2011/08/29
- [PATCH gnumach 10/16] Import Linux 3.1 ctype code, Guillem Jover, 2011/08/29
- [PATCH gnumach 09/16] Remove unused and non-functional string specialization header, Guillem Jover, 2011/08/29
- [PATCH gnumach 15/16] Honour type promotion on variable argument handling, Guillem Jover, 2011/08/29