From: Jani Nikula Date: Tue, 28 Oct 2014 08:17:26 +0000 (+0100) Subject: cli: cast timeval fields to long for format X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0bb1f26a268c357b2aa1e6a704eb3a3fa695fa32;p=notmuch.git cli: cast timeval fields to long for format This hides platform differences between struct timeval field types. --- diff --git a/notmuch-insert.c b/notmuch-insert.c index 7074077c..0d2d810a 100644 --- a/notmuch-insert.c +++ b/notmuch-insert.c @@ -197,7 +197,7 @@ tempfilename (const void *ctx) gettimeofday (&tv, NULL); filename = talloc_asprintf (ctx, "%ld.M%ldP%d.%s", - tv.tv_sec, tv.tv_usec, pid, hostname); + (long) tv.tv_sec, (long) tv.tv_usec, pid, hostname); if (! filename) fprintf (stderr, "Error: %s\n", strerror (ENOMEM));