]> diplodocus.org Git - nmh/blobdiff - uip/mhparse.c
content_error(): Add missing va_end(3).
[nmh] / uip / mhparse.c
index 94fd50bca59c07a0282cbc495736ec4e7aced366..fda2de0b3ed15794226e89bdff13dcf143a5a207 100644 (file)
@@ -20,6 +20,7 @@
 #ifdef HAVE_ICONV
 # include <iconv.h>
 #endif /* HAVE_ICONV */
+#include "../sbr/base64.h"
 
 
 extern int debugsw;
@@ -1366,7 +1367,7 @@ static void
 prefer_parts(CT ct)
 {
     int i;
-    for (i = npreferred-1; i >= 0; i--)
+    for (i = 0; i < npreferred; i++)
        move_preferred_part(ct, preferred_types[i], preferred_subtypes[i]);
 }
 
@@ -2326,7 +2327,7 @@ openExternal (CT ct, CT cb, CE ce, char **file, int *fd)
        goto ready_already;
     }
 
-    if (find_cache (ct, rcachesw, (int *) 0, cb->c_id,
+    if (find_cache(ct, rcachesw, NULL, cb->c_id,
                cachefile, sizeof(cachefile)) != NOTOK) {
        if ((ce->ce_fp = fopen (cachefile, "r"))) {
            ce->ce_file = mh_xstrdup(cachefile);