summary refs log tree commit diff stats
path: root/linux-user/main.c
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2021-04-30 12:59:06 +0100
committerDaniel P. Berrangé <berrange@redhat.com>2021-06-14 13:28:50 +0100
commit39683553f9a66b735a003ad43bb4d1460cef4d64 (patch)
tree3e32ca7ee8c650049262308452a6067e547ae4f3 /linux-user/main.c
parent85cd1cc6687e827f3e5e94ad2e13444b75d0c5fa (diff)
downloadfocaccia-qemu-39683553f9a66b735a003ad43bb4d1460cef4d64.tar.gz
focaccia-qemu-39683553f9a66b735a003ad43bb4d1460cef4d64.zip
block: use GDateTime for formatting timestamp when dumping snapshot info
The GDateTime APIs provided by GLib avoid portability pitfalls, such
as some platforms where 'struct timeval.tv_sec' field is still 'long'
instead of 'time_t'. When combined with automatic cleanup, GDateTime
often results in simpler code too.

Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'linux-user/main.c')
0 files changed, 0 insertions, 0 deletions