* [Qemu-devel][PATCH] Fix warning from sparse (wrong declaration)
@ 2008-11-30 14:23 Stefan Weil
2008-11-30 16:26 ` Aurelien Jarno
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Weil @ 2008-11-30 14:23 UTC (permalink / raw)
To: QEMU Developers
Fix data type (this fixes a warning from sparse)
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Index: qemu-tool.c
===================================================================
--- qemu-tool.c (Revision 5818)
+++ qemu-tool.c (Arbeitskopie)
@@ -81,7 +81,7 @@
int64_t qemu_get_clock(QEMUClock *clock)
{
- struct timeval tv;
+ qemu_timeval tv;
qemu_gettimeofday(&tv);
return (tv.tv_sec * 1000000000LL + (tv.tv_usec * 1000)) / 1000000;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel][PATCH] Fix warning from sparse (wrong declaration)
2008-11-30 14:23 [Qemu-devel][PATCH] Fix warning from sparse (wrong declaration) Stefan Weil
@ 2008-11-30 16:26 ` Aurelien Jarno
0 siblings, 0 replies; 2+ messages in thread
From: Aurelien Jarno @ 2008-11-30 16:26 UTC (permalink / raw)
To: qemu-devel
On Sun, Nov 30, 2008 at 03:23:51PM +0100, Stefan Weil wrote:
> Fix data type (this fixes a warning from sparse)
>
> Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Thanks, applied.
> Index: qemu-tool.c
> ===================================================================
> --- qemu-tool.c (Revision 5818)
> +++ qemu-tool.c (Arbeitskopie)
> @@ -81,7 +81,7 @@
>
> int64_t qemu_get_clock(QEMUClock *clock)
> {
> - struct timeval tv;
> + qemu_timeval tv;
> qemu_gettimeofday(&tv);
> return (tv.tv_sec * 1000000000LL + (tv.tv_usec * 1000)) / 1000000;
> }
>
>
>
>
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-30 16:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-30 14:23 [Qemu-devel][PATCH] Fix warning from sparse (wrong declaration) Stefan Weil
2008-11-30 16:26 ` Aurelien Jarno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).