Changeset 5118:9a1796a3f8f9

Show
Ignore:
Timestamp:
2007-04-10 19:23:16 (20 months ago)
Author:
Brendan Cully <brendan@…>
Branch:
HEAD
Message:

Fix some warnings

Files:
5 modified

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r5116 r5118  
    1 2007-04-10 17:40 -0700  Brendan Cully  <brendan@kublai.com>  (8082e4c9f524) 
     12007-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 
    26 
    37        * hcache.c, imap/imap.c, imap/imap_private.h, imap/message.c, 
  • bcache.c

    r5113 r5118  
    4343{ 
    4444  char host[STRING]; 
    45   char *s, *p; 
    4645  ciss_url_t url; 
    4746  size_t len; 
  • imap/imap.c

    r5115 r5118  
    15681568#ifdef USE_HCACHE 
    15691569  header_cache_t *hc = NULL; 
    1570   ciss_url_t url; 
    1571   char urlstr[LONG_STRING]; 
    1572   char cpath[LONG_STRING]; 
    15731570  unsigned int *uidvalidity = NULL; 
    15741571  unsigned int *uidnext = NULL; 
  • imap/util.c

    r5115 r5118  
    8585 
    8686  if (imap_parse_path (idata->ctx->path, &mx) < 0) 
    87     return -1; 
     87    return NULL; 
    8888 
    8989  if (path) 
  • lib.c

    r5092 r5118  
    867867    const char *dir, size_t dirlen, const char *fname, size_t fnamelen) 
    868868{ 
     869  size_t req; 
     870  size_t offset = 0; 
     871 
    869872  if (dstlen == 0) 
    870873    return NULL; /* probably should not mask errors like this */ 
    871874 
    872875  /* size check */ 
    873   size_t req = dirlen + fnamelen + 1; /* +1 for the trailing nul */ 
     876  req = dirlen + fnamelen + 1; /* +1 for the trailing nul */ 
    874877  if (dirlen && fnamelen) 
    875878    req++; /* when both components are non-nul, we add a "/" in between */ 
     
    885888  } 
    886889 
    887   size_t offset = 0; 
    888890  if (dirlen) { /* when dir is not empty */ 
    889891    memcpy(dst, dir, dirlen);