[bug #4302] errno is not always an extern int
[mmh] / uip / mhmisc.c
index 75ac158..825ec87 100644 (file)
@@ -3,6 +3,10 @@
  * mhparse.c -- misc routines to process MIME messages
  *
  * $Id$
+ *
+ * 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 <h/mh.h>
@@ -10,7 +14,6 @@
 #include <h/mime.h>
 #include <h/mhparse.h>
 
-extern int errno;
 extern int debugsw;
 
 /*
@@ -94,7 +97,7 @@ make_intermediates (char *file)
 {
     char *cp;
 
-    for (cp = file + 1; cp = strchr(cp, '/'); cp++) {
+    for (cp = file + 1; (cp = strchr(cp, '/')); cp++) {
        struct stat st;
 
        *cp = '\0';