Commit d92620c8e0fd51847db7d980e7dbd411e905e822
1 parent
f9487cb9
Fix warning from sparse (wrong declaration)
Fix data type (this fixes a warning from sparse) Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5834 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
qemu-tool.c
@@ -81,7 +81,7 @@ int qemu_set_fd_handler2(int fd, | @@ -81,7 +81,7 @@ int qemu_set_fd_handler2(int fd, | ||
81 | 81 | ||
82 | int64_t qemu_get_clock(QEMUClock *clock) | 82 | int64_t qemu_get_clock(QEMUClock *clock) |
83 | { | 83 | { |
84 | - struct timeval tv; | 84 | + qemu_timeval tv; |
85 | qemu_gettimeofday(&tv); | 85 | qemu_gettimeofday(&tv); |
86 | return (tv.tv_sec * 1000000000LL + (tv.tv_usec * 1000)) / 1000000; | 86 | return (tv.tv_sec * 1000000000LL + (tv.tv_usec * 1000)) / 1000000; |
87 | } | 87 | } |