Changeset 5118:9a1796a3f8f9
- Timestamp:
- 2007-04-10 19:23:16 (20 months ago)
- Author:
- Brendan Cully <brendan@…>
- Branch:
- HEAD
- Message:
-
Fix some warnings
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r5116
|
r5118
|
|
| 1 | | 2007-04-10 17:40 -0700 Brendan Cully <brendan@kublai.com> (8082e4c9f524) |
| | 1 | 2007-04-10 19:19 -0700 Brendan Cully <brendan@kublai.com> (ddd38b4cf15c) |
| | 2 | |
| | 3 | * hcache.c: Refactor mutt_hcache_open to share more code |
| | 4 | |
| | 5 | * hcache.c: Save some stats when header cache already exists |
| 2 | 6 | |
| 3 | 7 | * hcache.c, imap/imap.c, imap/imap_private.h, imap/message.c, |
-
|
r5113
|
r5118
|
|
| 43 | 43 | { |
| 44 | 44 | char host[STRING]; |
| 45 | | char *s, *p; |
| 46 | 45 | ciss_url_t url; |
| 47 | 46 | size_t len; |
-
|
r5115
|
r5118
|
|
| 1568 | 1568 | #ifdef USE_HCACHE |
| 1569 | 1569 | header_cache_t *hc = NULL; |
| 1570 | | ciss_url_t url; |
| 1571 | | char urlstr[LONG_STRING]; |
| 1572 | | char cpath[LONG_STRING]; |
| 1573 | 1570 | unsigned int *uidvalidity = NULL; |
| 1574 | 1571 | unsigned int *uidnext = NULL; |
-
|
r5115
|
r5118
|
|
| 85 | 85 | |
| 86 | 86 | if (imap_parse_path (idata->ctx->path, &mx) < 0) |
| 87 | | return -1; |
| | 87 | return NULL; |
| 88 | 88 | |
| 89 | 89 | if (path) |
-
|
r5092
|
r5118
|
|
| 867 | 867 | const char *dir, size_t dirlen, const char *fname, size_t fnamelen) |
| 868 | 868 | { |
| | 869 | size_t req; |
| | 870 | size_t offset = 0; |
| | 871 | |
| 869 | 872 | if (dstlen == 0) |
| 870 | 873 | return NULL; /* probably should not mask errors like this */ |
| 871 | 874 | |
| 872 | 875 | /* size check */ |
| 873 | | size_t req = dirlen + fnamelen + 1; /* +1 for the trailing nul */ |
| | 876 | req = dirlen + fnamelen + 1; /* +1 for the trailing nul */ |
| 874 | 877 | if (dirlen && fnamelen) |
| 875 | 878 | req++; /* when both components are non-nul, we add a "/" in between */ |
| … |
… |
|
| 885 | 888 | } |
| 886 | 889 | |
| 887 | | size_t offset = 0; |
| 888 | 890 | if (dirlen) { /* when dir is not empty */ |
| 889 | 891 | memcpy(dst, dir, dirlen); |