Skip to contentSkip to conversation

Fix warning from sparse (wrong declaration)

PATCH Applied Stefan Weil 2 participants 2 messages Nov 30, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix warning from sparse (wrong declaration)

Fix data type (this fixes a warning from sparse)

qemu-tool.c (Arbeitskopie) renamed from qemu-tool.c (Revision 5818) +1 -1
Index: qemu-tool.c
===================================================================
@@ -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;
 }
#1 lore raw
Quoted 3 lines · Stefan Weil

Fix data type (this fixes a warning from sparse)

Thanks, applied.

Quoted 17 lines

Index: qemu-tool.c
===================================================================

qemu-tool.c (Arbeitskopie) renamed from qemu-tool.c (Revision 5818) +1 -1
@@ -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;
 }
Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net