From: Dan Harkless Date: Fri, 16 Jul 1999 01:30:05 +0000 (+0000) Subject: Eliminated compilation warnings. X-Git-Tag: nmh-1_0~159 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=197f95940cc0860683e6988352f721e6603f9339;p=mmh Eliminated compilation warnings. --- diff --git a/uip/anno.c b/uip/anno.c index c318a22..34cd5da 100644 --- a/uip/anno.c +++ b/uip/anno.c @@ -178,7 +178,7 @@ main (int argc, char **argv) seq_save (mp); /* synchronize message sequences */ folder_free (mp); /* free folder/message structure */ context_save (); /* save the context file */ - done (0); + return done (0); } diff --git a/uip/ap.c b/uip/ap.c index 7e16b92..11381f3 100644 --- a/uip/ap.c +++ b/uip/ap.c @@ -146,7 +146,7 @@ main (int argc, char **argv) for (addrp = 0; addrs[addrp]; addrp++) status += process (addrs[addrp], width, normalize); - done (status); + return done (status); } struct pqpair { diff --git a/uip/comp.c b/uip/comp.c index e40c968..d380b52 100644 --- a/uip/comp.c +++ b/uip/comp.c @@ -302,5 +302,5 @@ edit_it: if (nwhat) done (0); what_now (ed, nedit, use, drft, NULL, 0, NULLMP, NULL, 0, cwd); - done (1); + return done (1); } diff --git a/uip/conflict.c b/uip/conflict.c index 29a12e7..1a921cd 100644 --- a/uip/conflict.c +++ b/uip/conflict.c @@ -134,7 +134,7 @@ main (int argc, char **argv) #endif /* UCI */ maildrops (); - done (0); + return done (0); } diff --git a/uip/dist.c b/uip/dist.c index 1fb1741..f8769a0 100644 --- a/uip/dist.c +++ b/uip/dist.c @@ -287,5 +287,5 @@ try_it_again: done (0); what_now (ed, nedit, NOUSE, drft, msgnam, 1, mp, anot ? "Resent" : NULL, inplace, cwd); - done (1); + return done (1); } diff --git a/uip/dp.c b/uip/dp.c index 0041198..a9bc90f 100644 --- a/uip/dp.c +++ b/uip/dp.c @@ -132,7 +132,7 @@ main (int argc, char **argv) status += process (dates[datep], width); context_save (); /* save the context file */ - done (status); + return done (status); } diff --git a/uip/flist.c b/uip/flist.c index bced89f..ad0cf2d 100644 --- a/uip/flist.c +++ b/uip/flist.c @@ -278,7 +278,7 @@ main(int argc, char **argv) ScanFolders(); qsort(folders, nFolders, sizeof(struct Folder), (qsort_comp) CompareFolders); PrintFolders(); - done (0); + return done (0); } /* diff --git a/uip/fmtdump.c b/uip/fmtdump.c index 89e70ef..9ae23b4 100644 --- a/uip/fmtdump.c +++ b/uip/fmtdump.c @@ -101,7 +101,7 @@ main (int argc, char **argv) ncomps = fmt_compile(nfs, &fmt); fmt_dump(fmt); - done(0); + return done(0); } static void diff --git a/uip/folder.c b/uip/folder.c index c023e11..f940316 100644 --- a/uip/folder.c +++ b/uip/folder.c @@ -421,7 +421,7 @@ main (int argc, char **argv) print_folders(); context_save (); /* save the context file */ - done (0); + return done (0); } /* diff --git a/uip/forw.c b/uip/forw.c index ade775e..8455431 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -447,7 +447,7 @@ try_it_again: done (0); what_now (ed, nedit, NOUSE, drft, NULL, 0, mp, anot ? "Forwarded" : NULL, inplace, cwd); - done (1); + return done (1); } diff --git a/uip/install-mh.c b/uip/install-mh.c index b2d2486..b2a1f1d 100644 --- a/uip/install-mh.c +++ b/uip/install-mh.c @@ -190,7 +190,7 @@ query: fprintf (out, "%s: %s\n", np->n_name, np->n_field); } fclose (out); - done (0); + return done (0); } diff --git a/uip/mark.c b/uip/mark.c index 2bbba6d..9bd4561 100644 --- a/uip/mark.c +++ b/uip/mark.c @@ -249,7 +249,7 @@ main (int argc, char **argv) context_replace (pfolder, folder); /* update current folder */ context_save (); /* save the context file */ folder_free (mp); /* free folder/message structure */ - done (0); + return done (0); } diff --git a/uip/mhl.c b/uip/mhl.c index 4c9e5e0..6ef30fb 100644 --- a/uip/mhl.c +++ b/uip/mhl.c @@ -14,7 +14,7 @@ main (int argc, char **argv) #ifdef LOCALE setlocale(LC_ALL, ""); #endif - done (mhl (argc, argv)); + return done (mhl (argc, argv)); } diff --git a/uip/mhmail.c b/uip/mhmail.c index f9dc33b..222a076 100644 --- a/uip/mhmail.c +++ b/uip/mhmail.c @@ -187,6 +187,8 @@ main (int argc, char **argv) perror (postproc); _exit (-1); } + + return 0; /* dead code to satisfy the compiler */ }