X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/d057cb7218d8e5a6b30f38a863b73b7d562bf9d0..a3727d33995d2782f111f159768d42a5c0cdfd99:/uip/mhparse.c diff --git a/uip/mhparse.c b/uip/mhparse.c index fc5ab20b..86a08b7a 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -205,8 +205,7 @@ pidcheck (int status) fflush (stdout); fflush (stderr); - done (1); - /* NOTREACHED */ + return done (1); } @@ -2400,7 +2399,7 @@ losing_ftp: goto losing_ftp; #endif - if (cachefile[0]) + if (cachefile[0]) { if (caching) chmod (cachefile, cachetype ? m_gmprot () : 0444); else { @@ -2414,7 +2413,7 @@ losing_ftp: fseek (gp, 0L, SEEK_SET); - while ((cc = fread (buffer, sizeof(*buffer), sizeof(buffer), gp)) + while ((cc= fread (buffer, sizeof(*buffer), sizeof(buffer), gp)) > 0) fwrite (buffer, sizeof(*buffer), cc, fp); fflush (fp); @@ -2432,6 +2431,7 @@ losing_ftp: } umask (mask); } + } fseek (ce->ce_fp, 0L, SEEK_SET); *file = ce->ce_file;