All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Welche <prlw1@cam.ac.uk>
To: 7heo <7heo@7heo.tk>
Cc: xen-devel@lists.xen.org
Subject: Re: [PATCH] FIX: Cast the time_t values to avoid warnings
Date: Sat, 27 Apr 2013 21:18:03 +0100	[thread overview]
Message-ID: <20130427201803.GA17211@quantz> (raw)
In-Reply-To: <1367092353-22130-1-git-send-email-7heo@7heo.tk>

On Sat, Apr 27, 2013 at 09:52:33PM +0200, 7heo wrote:
> I added 4 casts from time_t to unsigned long int
> in the libxl_sprintf functions, so there is no
> warning at compilation time (and no failing with
> -Werror).
> 
> The casting format has been discuted, and since
> there is no system having a 8 byte time_t format
> yet; unsigned long int should be sufficient.
> Also, it matches the libxl_sprintf syntax (%lu).

I thought that earlier in the thread someone pointed
out that unsigned long long would be a better plan?
(long could just be 32 bits long)

Cheers,

Patrick

  parent reply	other threads:[~2013-04-27 20:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-27 19:52 [PATCH] FIX: Cast the time_t values to avoid warnings 7heo
2013-04-27 19:55 ` 7heo
2013-04-27 20:18 ` Patrick Welche [this message]
2013-04-27 21:32   ` 7heo
2013-04-27 22:03     ` Patrick Welche
2013-04-27 22:27       ` 7heo
2013-04-27 22:59         ` Alex Bligh
2013-04-27 23:15           ` 7heo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130427201803.GA17211@quantz \
    --to=prlw1@cam.ac.uk \
    --cc=7heo@7heo.tk \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.