X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-insert.c;fp=notmuch-insert.c;h=0d2d810a35740f6edead0523ddb9352c05548383;hp=7074077ca699ea8d63cdcf8bdee0cbc59e19014f;hb=0bb1f26a268c357b2aa1e6a704eb3a3fa695fa32;hpb=961937988e5c8947ddabdaa34454309912fc809b 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));