diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2011-03-11 16:47:48 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2011-03-21 09:23:23 +0100 |
commit | 512eba6859a0b5fedc871cd349d8b78584472a5e (patch) | |
tree | 96e2748d5ea5c9dc565b50814eccd2b051d83fd4 | |
parent | d1958ff1cb0182f029f19b76b728c00c77e968aa (diff) | |
download | slirp-512eba6859a0b5fedc871cd349d8b78584472a5e.zip slirp-512eba6859a0b5fedc871cd349d8b78584472a5e.tar.gz slirp-512eba6859a0b5fedc871cd349d8b78584472a5e.tar.bz2 |
change all rt_clock references to use millisecond resolution accessors
This was done with:
sed -i '/get_clock\>.*rt_clock/s/get_clock\>/get_clock_ms/' \
$(git grep -l 'get_clock\>.*rt_clock' )
sed -i '/new_timer\>.*rt_clock/s/new_timer\>/new_timer_ms/' \
$(git grep -l 'new_timer\>.*rt_clock' )
after checking that get_clock and new_timer never occur twice
on the same line. There were no missed occurrences; however, even
if there had been, they would have been caught by the compiler.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | slirp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -396,7 +396,7 @@ void slirp_select_poll(fd_set *readfds, fd_set *writefds, fd_set *xfds, global_writefds = writefds; global_xfds = xfds; - curtime = qemu_get_clock(rt_clock); + curtime = qemu_get_clock_ms(rt_clock); QTAILQ_FOREACH (slirp, &slirp_instances, entry) { /* |