]> diplodocus.org Git - nmh/blobdiff - uip/mhlistsbr.c
Replace GNUism with standard touch flag in test-scan-file.
[nmh] / uip / mhlistsbr.c
index 4b66a84b736fb48844dd57f7babd9402751fcbbd..68cd4d270d5907b8ff680d3176dcad3123a8e9bb 100644 (file)
@@ -7,6 +7,8 @@
  */
 
 #include "h/mh.h"
+#include "sbr/r1bindex.h"
+#include "sbr/trimcpy.h"
 #include <fcntl.h>
 #include "h/mts.h"
 #include "h/tws.h"
@@ -21,7 +23,6 @@
 static void list_single_message (CT, int, int, int, int);
 static int list_debug (CT);
 static int list_multi (CT, int, int, int, int, int);
-static int list_partial (CT, int, int, int, int, int);
 static int list_external (CT, int, int, int, int, int);
 static int list_encoding (CT);
 
@@ -98,10 +99,6 @@ list_switch (CT ct, int toplevel, int realsize, int verbose, int debug,
 
        case CT_MESSAGE:
            switch (ct->c_subtype) {
-               case MESSAGE_PARTIAL:
-                   return list_partial (ct, toplevel, realsize, verbose,
-                                        debug, dispo);
-
                case MESSAGE_EXTERNAL:
                    return list_external (ct, toplevel, realsize, verbose,
                                          debug, dispo);
@@ -139,9 +136,9 @@ list_content (CT ct, int toplevel, int realsize, int verbose, int debug,
     PM pm;
 
     if (toplevel > 0)
-       printf (LSTFMT2a, atoi (r1bindex (FENDNULL(ct->c_file), '/')));
+       printf (LSTFMT2a, atoi (r1bindex (FENDNULL(ct->c_file), '/')));
     else
-       printf(toplevel < 0 ? "part " : "     ");
+       printf(toplevel < 0 ? "part " : "     ");
 
     snprintf (buffer, sizeof(buffer), "%s/%s", FENDNULL(ci->ci_type),
                FENDNULL(ci->ci_subtype));
@@ -196,7 +193,7 @@ list_content (CT ct, int toplevel, int realsize, int verbose, int debug,
 
        for (pm = ci->ci_first_pm; pm; pm = pm->pm_next) {
            printf ("\t     %s=\"%s\"\n", pm->pm_name,
-                   get_param_value(pm, '?'));
+                   get_param_value(pm, '?'));
        }
 
        /*
@@ -334,28 +331,6 @@ list_multi (CT ct, int toplevel, int realsize, int verbose, int debug,
 }
 
 
-/*
- * list content information for type "message/partial"
- */
-
-static int
-list_partial (CT ct, int toplevel, int realsize, int verbose, int debug,
-             int dispo)
-{
-    struct partial *p = (struct partial *) ct->c_ctparams;
-
-    list_content (ct, toplevel, realsize, verbose, debug, dispo);
-    if (verbose) {
-       printf ("\t     [message %s, part %d", p->pm_partid, p->pm_partno);
-       if (p->pm_maxno)
-           printf (" of %d", p->pm_maxno);
-       puts("]");
-    }
-
-    return OK;
-}
-
-
 /*
  * list content information for type "message/external"
  */