X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=muttlib.c;h=1f6b7514bbb97f8b58a720d5315a2d498b9e5213;hp=97e650f2cec08badd39eca09d81eabce45197ecc;hb=8336b26fc23c7943bf6681ba2c290bb5cd2c54b8;hpb=9ed7a487e3a922f2cbb222961c2c9710c3a65f91 diff --git a/muttlib.c b/muttlib.c index 97e650f..1f6b751 100644 --- a/muttlib.c +++ b/muttlib.c @@ -12,7 +12,6 @@ #include #include -#include #include #include @@ -233,14 +232,6 @@ void mutt_pretty_mailbox (char *s) } } -void -mutt_expand_file_fmt(char *dst, ssize_t n, const char *fmt, const char *src) -{ - char tmp[LONG_STRING]; - mutt_quote_filename(tmp, sizeof(tmp), src); - m_file_fmt(dst, n, fmt, tmp); -} - /* return 0 on success, -1 on abort, 1 on error */ int mutt_check_overwrite (const char *attname, const char *path, char *fname, ssize_t flen, int *append, @@ -613,29 +604,6 @@ void mutt_sleep (short s) sleep(MAX(s, SleepTime)); } -/* Decrease a file's modification time by 1 second */ -time_t mutt_decrease_mtime (const char *f, struct stat *st) -{ - struct utimbuf utim; - struct stat _st; - time_t mtime; - - if (!st) { - if (stat (f, &_st) == -1) - return -1; - st = &_st; - } - - if ((mtime = st->st_mtime) == time (NULL)) { - mtime -= 1; - utim.actime = mtime; - utim.modtime = mtime; - utime (f, &utim); - } - - return mtime; -} - const char *mutt_make_version (int full) { static char vstring[STRING];