projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Back out previous, completely broken, change (due to a foulup I was
[mmh]
/
uip
/
mhoutsbr.c
diff --git
a/uip/mhoutsbr.c
b/uip/mhoutsbr.c
index
6d2914a
..
2ebdc1f
100644
(file)
--- a/
uip/mhoutsbr.c
+++ b/
uip/mhoutsbr.c
@@
-4,6
+4,10
@@
* -- given a Content structure
*
* $Id$
* -- given a Content structure
*
* $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 <h/mh.h>
*/
#include <h/mh.h>
@@
-12,8
+16,8
@@
#include <h/md5.h>
#include <errno.h>
#include <signal.h>
#include <h/md5.h>
#include <errno.h>
#include <signal.h>
-#include <zotnet/mts/mts.h>
-#include <zotnet/tws/tws.h>
+#include <h/mts.h>
+#include <h/tws.h>
#include <h/mime.h>
#include <h/mhparse.h>
#include <h/mime.h>
#include <h/mhparse.h>
@@
-22,7
+26,6
@@
#endif
#endif
-extern int errno;
extern int ebcdicsw;
static char ebcdicsafe[0x100] = {
extern int ebcdicsw;
static char ebcdicsafe[0x100] = {
@@
-73,7
+76,7
@@
int writeBase64aux (FILE *, FILE *);
* static prototypes
*/
static int output_content (CT, FILE *);
* static prototypes
*/
static int output_content (CT, FILE *);
-static int output_headers (CT, FILE *);
+static void output_headers (CT, FILE *);
static int writeExternalBody (CT, FILE *);
static int write8Bit (CT, FILE *);
static int writeQuoted (CT, FILE *);
static int writeExternalBody (CT, FILE *);
static int write8Bit (CT, FILE *);
static int writeQuoted (CT, FILE *);
@@
-219,7
+222,7
@@
output_content (CT ct, FILE *out)
* Output all the header fields for a content
*/
* Output all the header fields for a content
*/
-static int
+static void
output_headers (CT ct, FILE *out)
{
HF hp;
output_headers (CT ct, FILE *out)
{
HF hp;
@@
-260,7
+263,7
@@
writeExternalBody (CT ct, FILE *out)
case 'N':
for (ap = ci2->ci_attrs, ep = ci2->ci_values; *ap; ap++, ep++)
case 'N':
for (ap = ci2->ci_attrs, ep = ci2->ci_values; *ap; ap++, ep++)
- if (!strcasecmp (*ap, "name")) {
+ if (!mh_strcasecmp (*ap, "name")) {
fprintf (out, "%s", *ep);
break;
}
fprintf (out, "%s", *ep);
break;
}