X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mh.c;h=ae978e999404a48b87ffa199b71a224df6ba408d;hp=56ff8b4b3b541fd28d0ccd96cd84d0ee38ec677c;hb=f8867ec009c96710193ccc3832d8bb346192b1b0;hpb=3d937534e7b1ee723f86594b5e4c64c95158a933 diff --git a/mh.c b/mh.c index 56ff8b4..ae978e9 100644 --- a/mh.c +++ b/mh.c @@ -22,6 +22,10 @@ * mailboxes. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif + #include "mutt.h" #include "mailbox.h" #include "mx.h" @@ -893,7 +897,6 @@ void maildir_delayed_parsing (CONTEXT * ctx, struct maildir *md) #if USE_HCACHE void *hc = NULL; void *data; - unsigned int size; struct timeval *when = NULL; struct stat lastchanged; int ret; @@ -1077,7 +1080,7 @@ int maildir_open_new_message (MESSAGE * msg, CONTEXT * dest, HEADER * hdr) FOREVER { snprintf (path, _POSIX_PATH_MAX, "%s/tmp/%s.%ld.%u_%d.%s%s", - dest->path, subdir, time (NULL), (unsigned int)getpid (), + dest->path, subdir, (long) time (NULL), (unsigned int)getpid (), Counter++, NONULL (Hostname), suffix); dprint (2, (debugfile, "maildir_open_new_message (): Trying %s.\n", @@ -1159,7 +1162,7 @@ int maildir_commit_message (CONTEXT * ctx, MESSAGE * msg, HEADER * hdr) FOREVER { snprintf (path, _POSIX_PATH_MAX, "%s/%ld.%u_%d.%s%s", subdir, - time (NULL), (unsigned int)getpid (), Counter++, + (long) time (NULL), (unsigned int)getpid (), Counter++, NONULL (Hostname), suffix); snprintf (full, _POSIX_PATH_MAX, "%s/%s", ctx->path, path);