qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 4/7] usb/dev-mtp: use GDateTime for formatting timestamp for


From: Gerd Hoffmann
Subject: Re: [PATCH 4/7] usb/dev-mtp: use GDateTime for formatting timestamp for objects
Date: Wed, 5 May 2021 15:08:41 +0200

On Wed, May 05, 2021 at 11:36:59AM +0100, Daniel P. Berrangé wrote:
> 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.
> 
> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>

Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]