X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhlistsbr.c;h=a4e831a068014dd4baefaed342181bc719e7d2cf;hb=2b907b9a1126fe5b47204b2f778f8689af593476;hp=1aac74a826998b4d6aba33cd9ceda19fe6fd2c69;hpb=e39c2471b6e2166d2e8a4cb515b4493936cf5203;p=mmh diff --git a/uip/mhlistsbr.c b/uip/mhlistsbr.c index 1aac74a..a4e831a 100644 --- a/uip/mhlistsbr.c +++ b/uip/mhlistsbr.c @@ -206,18 +206,26 @@ list_content (CT ct, int toplevel, int realsize, int verbose, int debug) printf ("\n"); - /* - * If verbose, print any RFC-822 comments in the - * Content-Type line. - */ - if (verbose && ci->ci_comment) { - char *dp; + if (verbose) { + char **ap, **ep; + CI ci = &ct->c_ctinfo; - dp = trimcpy (cp = add (ci->ci_comment, NULL)); - free (cp); - snprintf (buffer, sizeof(buffer), "(%s)", dp); - free (dp); - printf (LSTFMT2d2, buffer); + for (ap = ci->ci_attrs, ep = ci->ci_values; *ap; ap++, ep++) + printf ("\t %s=\"%s\"\n", *ap, *ep); + + /* + * If verbose, print any RFC-822 comments in the + * Content-Type line. + */ + if (ci->ci_comment) { + char *dp; + + dp = trimcpy (cp = add (ci->ci_comment, NULL)); + free (cp); + snprintf (buffer, sizeof(buffer), "(%s)", dp); + free (dp); + printf (LSTFMT2d2, buffer); + } } if (debug) @@ -394,19 +402,15 @@ list_external (CT ct, int toplevel, int realsize, int verbose, int debug) /* * list content information for type "application" + * This no longer needs to be a separate function. It used to + * produce some output with verbose enabled, but that has been + * moved to list_content (). */ static int list_application (CT ct, int toplevel, int realsize, int verbose, int debug) { list_content (ct, toplevel, realsize, verbose, debug); - if (verbose) { - char **ap, **ep; - CI ci = &ct->c_ctinfo; - - for (ap = ci->ci_attrs, ep = ci->ci_values; *ap; ap++, ep++) - printf ("\t %s=\"%s\"\n", *ap, *ep); - } return OK; }