Changeset 5445:f41ba27be46f
- Timestamp:
- 2008-07-02 09:08:07 (5 months ago)
- Author:
- Rocco Rutte <pdmef@…>
- Branch:
- HEAD
- Message:
-
Fix casts for progress update to prevent -ftrapv aborts to trigger. Closes #3018.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r5443
|
r5445
|
|
| | 1 | 2008-07-02 08:56 -0700 Brendan Cully <brendan@kublai.com> (c51c16db46cc) |
| | 2 | |
| | 3 | * crypt-gpgme.c: Only make LC_MESSAGES conditional on NLS in GPGME |
| | 4 | locale support. |
| | 5 | |
| | 6 | 2008-07-02 11:19 +0200 Rocco Rutte <pdmef@gmx.net> (8b783c916893) |
| | 7 | |
| | 8 | * ChangeLog, browser.c, buffy.c, commands.c, compose.c, curs_main.c, |
| | 9 | enter.c, headers.c, hook.c, imap/imap.c, init.c, mbox.c, muttlib.c, |
| | 10 | postpone.c, protos.h, recvattach.c, send.c, status.c: Use realpath() |
| | 11 | in mutt_pretty_mailbox() for paths that may need it. This requires |
| | 12 | to add the buffer size as parameter since the result may be longer |
| | 13 | than the original but still fit in the buffer. Closes #2948. |
| | 14 | |
| 1 | 15 | 2008-07-02 10:06 +0200 Rocco Rutte <pdmef@gmx.net> (cc2334fdf126) |
| 2 | 16 | |
-
|
r5441
|
r5445
|
|
| 378 | 378 | /* if timestamp is 0 no time-based suppression is done */ |
| 379 | 379 | if (TimeInc) |
| 380 | | progress->timestamp = (unsigned int) (tv.tv_sec * 1000) |
| | 380 | progress->timestamp = ((unsigned int) tv.tv_sec * 1000) |
| 381 | 381 | + (unsigned int) (tv.tv_usec / 1000); |
| 382 | 382 | mutt_progress_update (progress, 0, 0); |
| … |
… |
|
| 402 | 402 | /* skip refresh if not enough time has passed */ |
| 403 | 403 | if (update && progress->timestamp && !gettimeofday (&tv, NULL)) { |
| 404 | | now = (unsigned int) (tv.tv_sec * 1000) |
| | 404 | now = ((unsigned int) tv.tv_sec * 1000) |
| 405 | 405 | + (unsigned int) (tv.tv_usec / 1000); |
| 406 | 406 | if (now && now - progress->timestamp < TimeInc) |