]> diplodocus.org Git - nmh/blobdiff - uip/mhcachesbr.c
showfile.c: Move interface to own file.
[nmh] / uip / mhcachesbr.c
index b740e231e2e2ad58fc142136c95acbf4286281c1..9fedd161aaa15d2a5c51d22fc3de847660633969 100644 (file)
@@ -5,15 +5,17 @@
  * complete copyright information.
  */
 
-#include <h/mh.h>
+#include "h/mh.h"
+#include "sbr/trimcpy.h"
+#include "sbr/error.h"
 #include <fcntl.h>
-#include <h/md5.h>
-#include <h/mts.h>
-#include <h/tws.h>
-#include <h/mime.h>
-#include <h/mhparse.h>
-#include <h/mhcachesbr.h>
-#include <h/utils.h>
+#include "h/md5.h"
+#include "h/mts.h"
+#include "h/tws.h"
+#include "h/mime.h"
+#include "h/mhparse.h"
+#include "h/mhcachesbr.h"
+#include "h/utils.h"
 #include "mhmisc.h"
 #include "sbr/lock_file.h"
 #include "sbr/m_mktemp.h"
@@ -270,14 +272,15 @@ static int
 find_cache_aux (int writing, char *directory, char *id,
        char *buffer, int buflen)
 {
-    int        mask, usemap;
+    int        mask;
+    bool usemap;
     char mapfile[BUFSIZ], mapname[BUFSIZ];
     FILE *fp;
     int failed_to_lock = 0;
     static int partno, pid;
     static time_t clock = 0;
 
-    usemap = 1;
+    usemap = true;
 
     if (debugsw)
        fprintf (stderr, "find_cache_aux %s usemap=%d\n", directory, usemap);