From: David Levine Date: Wed, 21 Mar 2012 04:49:17 +0000 (-0500) Subject: Fixed harmless compile warnings. X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=c2a2ca7d8d72c5a8bdadcd6f2c4dcf3c314a1066;p=mmh Fixed harmless compile warnings. --- diff --git a/docs/pending-release-notes b/docs/pending-release-notes index b4bf20c..a867299 100644 --- a/docs/pending-release-notes +++ b/docs/pending-release-notes @@ -50,8 +50,8 @@ Things to add to the release notes for the next full release: the Sender: header or the new Envelope-From: header. - The -attach option is now the default (using Nmh-Attachment) and -attachformat 1 is now the default. -- repl and dist currently create a link to the message being replied - or redistributed named ./@. A switch, -noatfile, has been added to +- repl and dist currently create a link named ./@ to the message being + replied or redistributed. A switch, -noatfile, has been added to disable creation of this link. The current default behavior can also be specified with -atfile. The current default behavior is obsolete/deprecated: -noatfile will become the default in the next diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c index 0798746..7abbf43 100644 --- a/uip/mhlsbr.c +++ b/uip/mhlsbr.c @@ -156,11 +156,13 @@ static struct mcomp *fmthd = NULL; static struct mcomp *fmttl = NULL; static struct mcomp global = { - NULL, NULL, NULL, NULL, NULL, NULL, 0, -1, 80, -1, 40, BELL, NULL + NULL, NULL, NULL, NULL, NULL, NULL, 0, -1, 80, -1, 40, BELL, NULL, NULL, + 0, NULL }; static struct mcomp holder = { - NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, 0, 0, NOCOMPONENT, NULL + NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, 0, 0, NOCOMPONENT, NULL, NULL, + 0, NULL }; struct pair { @@ -318,7 +320,8 @@ int mhl (int argc, char **argv) { int length = 0, nomore = 0; - int i, width = 0, vecp = 0; + unsigned int i, vecp = 0;; + int width = 0; char *cp, *folder = NULL, *form = NULL; char buf[BUFSIZ], *files[MAXARGS]; char **argp, **arguments; @@ -1905,7 +1908,7 @@ compileargs (struct mcomp *c1, char *nfs) { struct format *fmt; struct arglist *args; - int i; + unsigned int i; i = fmt_compile(nfs, &fmt); @@ -2017,7 +2020,7 @@ static void freecomps(void) { struct comp *c1, *c2; - int i; + unsigned int i; for (i = 0; i < sizeof(mhlcomp)/sizeof(mhlcomp[0]); i++) { if ((c1 = mhlcomp[i])) @@ -2038,7 +2041,7 @@ static void freecomptext(void) { struct comp *c1; - int i; + unsigned int i; for (i = 0; i < sizeof(mhlcomp)/sizeof(mhlcomp[0]); i++) { if ((c1 = mhlcomp[i]))