diff options
author | Stefan Fritsch <sf@cvs.openbsd.org> | 2013-07-03 15:26:04 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@cvs.openbsd.org> | 2013-07-03 15:26:04 +0000 |
commit | edac72af4a900f01ba73958401bb5651be8f45ad (patch) | |
tree | 232d80b07f4934ce588115fea0df8fd87de6c103 /sys/dev/vmt.c | |
parent | 5a91d8a58d32e5e57c12c6c7e002716d3f33c735 (diff) |
cast time_t to long long, time_t is signed, tv_nsec is long
ok deraadt@
Diffstat (limited to 'sys/dev/vmt.c')
-rw-r--r-- | sys/dev/vmt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/vmt.c b/sys/dev/vmt.c index 5fb5e1e30ef..d0482f3e195 100644 --- a/sys/dev/vmt.c +++ b/sys/dev/vmt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmt.c,v 1.12 2012/09/11 04:40:14 dtucker Exp $ */ +/* $OpenBSD: vmt.c,v 1.13 2013/07/03 15:26:02 sf Exp $ */ /* * Copyright (c) 2007 David Crawshaw <david@zentus.com> @@ -313,8 +313,8 @@ void vmt_update_guest_uptime(struct vmt_softc *sc) { /* host wants uptime in hundredths of a second */ - if (vm_rpc_send_rpci_tx(sc, "SetGuestInfo %d %lu00", - VM_GUEST_INFO_UPTIME, time_uptime) != 0) { + if (vm_rpc_send_rpci_tx(sc, "SetGuestInfo %d %lld00", + VM_GUEST_INFO_UPTIME, (long long)time_uptime) != 0) { printf("%s: unable to set guest uptime", DEVNAME(sc)); sc->sc_rpc_error = 1; } |