projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Silence the output of `cd -' in the tests
[mmh]
/
uip
/
mhlistsbr.c
diff --git
a/uip/mhlistsbr.c
b/uip/mhlistsbr.c
index
c2db987
..
2a4f504
100644
(file)
--- a/
uip/mhlistsbr.c
+++ b/
uip/mhlistsbr.c
@@
-9,13
+9,13
@@
#include <h/mh.h>
#include <fcntl.h>
#include <h/mh.h>
#include <fcntl.h>
-#include <h/signals.h>
#include <errno.h>
#include <errno.h>
-#include <signal.h>
#include <h/tws.h>
#include <h/mime.h>
#include <h/mhparse.h>
#include <h/utils.h>
#include <h/tws.h>
#include <h/mime.h>
#include <h/mhparse.h>
#include <h/utils.h>
+#include <sys/stat.h>
+#include <sysexits.h>
/* mhmisc.c */
int part_ok(CT, int);
/* mhmisc.c */
int part_ok(CT, int);
@@
-25,7
+25,7
@@
void flush_errors(void);
/*
** prototypes
*/
/*
** prototypes
*/
-void list_all_messages(CT *, int, int, int);
+void list_all_messages(CT *, int, int);
int list_switch(CT, int, int, int);
int list_content(CT, int, int, int);
int list_switch(CT, int, int, int);
int list_content(CT, int, int, int);
@@
-57,19
+57,15
@@
static int list_encoding(CT);
** Top level entry point to list group of messages
*/
void
** Top level entry point to list group of messages
*/
void
-list_all_messages(CT *cts, int headers, int verbose, int debug)
+list_all_messages(CT *cts, int verbose, int debug)
{
CT ct, *ctp;
{
CT ct, *ctp;
- if (headers)
- printf(LSTFMT1, "msg", "part", "type/subtype", "size",
- "description");
-
+ printf(LSTFMT1, "msg", "part", "type/subtype", "size", "description");
for (ctp = cts; *ctp; ctp++) {
ct = *ctp;
list_single_message(ct, verbose, debug);
}
for (ctp = cts; *ctp; ctp++) {
ct = *ctp;
list_single_message(ct, verbose, debug);
}
-
flush_errors();
}
flush_errors();
}
@@
-122,7
+118,7
@@
list_switch(CT ct, int toplevel, int verbose, int debug)
default:
/* list_debug (ct); */
default:
/* list_debug (ct); */
- adios(NULL, "unknown content type %d", ct->c_type);
+ adios(EX_DATAERR, NULL, "unknown content type %d", ct->c_type);
break;
}
break;
}