aboutsummaryrefslogtreecommitdiff
path: root/notmuch-insert.c
diff options
context:
space:
mode:
authorJani Nikula <jani@nikula.org>2014-10-28 09:17:26 +0100
committerDavid Bremner <david@tethera.net>2014-10-28 12:12:10 +0100
commit0bb1f26a268c357b2aa1e6a704eb3a3fa695fa32 (patch)
tree3bdc0359ea5c7a0c421f5fb7e1cc0615445476dc /notmuch-insert.c
parent961937988e5c8947ddabdaa34454309912fc809b (diff)
cli: cast timeval fields to long for format
This hides platform differences between struct timeval field types.
Diffstat (limited to 'notmuch-insert.c')
-rw-r--r--notmuch-insert.c2
1 files changed, 1 insertions, 1 deletions
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));