[PATCH] cli: cast timeval fields to long for format
Tomi Ollila
tomi.ollila at iki.fi
Tue Oct 28 02:33:02 PDT 2014
On Tue, Oct 28 2014, Jani Nikula <jani at nikula.org> wrote:
> This hides platform differences between struct timeval field types.
LGTM.
Tomi
> ---
> notmuch-insert.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/notmuch-insert.c b/notmuch-insert.c
> index 7074077..0d2d810 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));
>
> --
> 1.7.2.5
>
> _______________________________________________
> notmuch mailing list
> notmuch at notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch
More information about the notmuch
mailing list