From: 7heo@7heo.tk Subject: Re: [PATCH] FIX: Cast the time_t values to avoid warnings Date: Sun, 28 Apr 2013 01:15:39 +0200 Message-ID: <20130427231539.GA1814@7heo.tk> References: <1367092353-22130-1-git-send-email-7heo@7heo.tk> <20130427201803.GA17211@quantz> <20130427213235.GA28121@7heo.tk> <20130427220349.GB29754@quantz> <20130427222729.GA32177@7heo.tk> <33B04B28EBA73FCE47FBBD2B@nimrod.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <33B04B28EBA73FCE47FBBD2B@nimrod.local> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Sat, Apr 27, 2013 at 11:59:35PM +0100, Alex Bligh wrote: > > > --On 28 April 2013 00:27:29 +0200 7heo@7heo.tk 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.