mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24:54 +01:00
cli: cast timeval fields to long for format
This hides platform differences between struct timeval field types.
This commit is contained in:
parent
961937988e
commit
0bb1f26a26
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue