Changeset 5113:48625b8141d7 for bcache.c

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

Simplify body cache path creation

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bcache.c

    r5034 r5113  
    5858   */ 
    5959  url.path = NULL; 
    60   if (url_ciss_tostring (&url, host, sizeof (host), 0) < 0) 
     60  if (url_ciss_tostring (&url, host, sizeof (host), U_PATH) < 0) 
    6161  { 
    6262    dprint (1, (debugfile, "bcache_path: URL to string failed\n")); 
     
    6565 
    6666  dprint (3, (debugfile, "bcache_path: URL: '%s'\n", host)); 
    67  
    68   /* transform URL scheme:// to scheme: */ 
    69   for (s = p = host; *s; s++) 
    70     /* keep trailing slash */ 
    71     if (*s != '/' || *(s + 1) == '\0') 
    72       *p++ = *s; 
    73   *p = '\0'; 
    7467 
    7568  len = snprintf (dst, dstlen-1, "%s/%s%s%s", MessageCachedir,