X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhcachesbr.c;fp=uip%2Fmhcachesbr.c;h=100f9729c152a0df7788acc7624aed8616dcdc0f;hp=0cefa8724dc81ac75216af4145bc6622405ee500;hb=ced6090a330d3d83d0bce709f756aa3d7d65fea4;hpb=337338b404931f06f0db2119c9e145e8ca5a9860 diff --git a/uip/mhcachesbr.c b/uip/mhcachesbr.c index 0cefa87..100f972 100644 --- a/uip/mhcachesbr.c +++ b/uip/mhcachesbr.c @@ -1,10 +1,10 @@ /* - * mhcachesbr.c -- routines to manipulate the MIME content cache - * - * This code is Copyright (c) 2002, by the authors of nmh. See the - * COPYRIGHT file in the root directory of the nmh distribution for - * complete copyright information. - */ +** mhcachesbr.c -- routines to manipulate the MIME content cache +** +** This code is Copyright (c) 2002, by the authors of nmh. See the +** COPYRIGHT file in the root directory of the nmh distribution for +** complete copyright information. +*/ #include #include @@ -44,9 +44,9 @@ int rcachesw = CACHE_ASK; int wcachesw = CACHE_ASK; /* - * Location of public and private cache. These must - * be set before these routines are called. - */ +** Location of public and private cache. These must +** be set before these routines are called. +*/ char *cache_public; char *cache_private; @@ -62,23 +62,23 @@ void content_error (char *, CT, char *, ...); void flush_errors (void); /* - * prototypes - */ +** prototypes +*/ void cache_all_messages (CT *); int find_cache (CT, int, int *, char *, char *, int); /* - * static prototypes - */ +** static prototypes +*/ static void cache_content (CT); static int find_cache_aux (int, char *, char *, char *, int); static int find_cache_aux2 (char *, char *, char *, int); /* - * Top level entry point to cache content - * from a group of messages - */ +** Top level entry point to cache content +** from a group of messages +*/ void cache_all_messages (CT *cts) @@ -102,8 +102,8 @@ cache_all_messages (CT *cts) /* - * Entry point to cache content from external sources. - */ +** Entry point to cache content from external sources. +*/ static void cache_content (CT ct) @@ -147,7 +147,8 @@ cache_content (CT ct) FILE *fp; if (debugsw) - fprintf (stderr, "caching by copying %s...\n", ce->ce_file); + fprintf (stderr, "caching by copying %s...\n", + ce->ce_file); file = NULL; if ((*ct->c_ceopenfnx) (ct, &file) == NOTOK) @@ -176,7 +177,8 @@ cache_content (CT ct) } fclose (fp); } else - content_error (cachefile, ct, "unable to fopen for writing"); + content_error (cachefile, ct, + "unable to fopen for writing"); reset_umask: umask (mask); } else { @@ -201,8 +203,9 @@ find_cache (CT ct, int policy, int *writing, char *id, id = trimcpy (id); if (debugsw) - fprintf (stderr, "find_cache %s(%d) %s %s\n", caches[policy].sw, - policy, writing ? "writing" : "reading", id); + fprintf (stderr, "find_cache %s(%d) %s %s\n", + caches[policy].sw, policy, + writing ? "writing" : "reading", id); switch (policy) { case CACHE_NEVER: