*/
#include <h/mh.h>
-#include <errno.h>
#include <h/mime.h>
#include <h/mhparse.h>
void
free_encoding (CT ct, int toplevel)
{
- CE ce;
-
- if (!(ce = ct->c_cefile))
- return;
+ CE ce = &ct->c_cefile;
if (ce->ce_fp) {
fclose (ce->ce_fp);
ce->ce_file = NULL;
}
- if (toplevel) {
- free ((char *) ce);
- ct->c_cefile = NULL;
- } else {
+ if (! toplevel) {
ct->c_ceopenfnx = NULL;
}
}