X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;ds=sidebyside;f=uip%2Fmhlist.c;h=56d9398f91395faae30318eb6bf70feba9efb64b;hb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;hp=ec2f9459f98735719338ec4011f830269d5797a8;hpb=3c9700d8d045f3ff26ce5dd2a174454dafc14822;p=mmh diff --git a/uip/mhlist.c b/uip/mhlist.c index ec2f945..56d9398 100644 --- a/uip/mhlist.c +++ b/uip/mhlist.c @@ -3,6 +3,10 @@ * mhlist.c -- list the contents of 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 @@ -11,11 +15,12 @@ #include #include #include -#include -#include +#include +#include #include #include #include +#include #ifdef HAVE_SYS_WAIT_H # include @@ -58,7 +63,7 @@ static struct swit switches[] = { #define VERSIONSW 13 { "version", 0 }, #define HELPSW 14 - { "help", 4 }, + { "help", 0 }, /* * switches for debugging @@ -69,8 +74,6 @@ static struct swit switches[] = { }; -extern int errno; - /* mhparse.c */ extern int checksw; extern char *tmp; /* directory to place temp files */ @@ -151,8 +154,7 @@ main (int argc, char **argv) */ nummsgs = 0; maxmsgs = MAXMSGS; - if (!(msgs = (char **) malloc ((size_t) (maxmsgs * sizeof(*msgs))))) - adios (NULL, "unable to allocate storage"); + msgs = (char **) mh_xmalloc ((size_t) (maxmsgs * sizeof(*msgs))); /* * Parse arguments