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

Re: [Xen-devel] [PATCH] FIX: Cast the time_t values to avoid warnings


  • To: xen-devel@xxxxxxxxxxxxx
  • From: 7heo@xxxxxxx
  • Date: Sun, 28 Apr 2013 01:15:39 +0200
  • Delivery-date: Sat, 27 Apr 2013 23:16:22 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

On Sat, Apr 27, 2013 at 11:59:35PM +0100, Alex Bligh wrote:
> 
> 
> --On 28 April 2013 00:27:29 +0200 7heo@xxxxxxx wrote:
> 
> >Thanks for having taken the time to check. Then it would
> >maybe make sense to check the size of time_t at
> >compilation time (with cpp instructions) in order to
> >chose the cast that fits, wouldn't it?
> 
> Would it not be easier just to cast to unsigned long long, and use %llu?
> 
> -- 
> Alex Bligh

Yeah, you're right. I'm then going to do that.

Thanks for the suggestion.

Regards,
7heo.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.