X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/2fc70e8bf64ead869fce76abb74f04bf1af94923..94eba9d3c32077aa8548f2132cc43d6a0679272a:/uip/mhbuildsbr.c diff --git a/uip/mhbuildsbr.c b/uip/mhbuildsbr.c index a615dcf9..f22db992 100644 --- a/uip/mhbuildsbr.c +++ b/uip/mhbuildsbr.c @@ -22,6 +22,8 @@ #include #include #include +#include "h/mhcachesbr.h" +#include "mhmisc.h" #include "../sbr/m_mktemp.h" #include "../sbr/message_id.h" #include "../sbr/mime_type.h" @@ -55,12 +57,6 @@ typedef struct convert_list { } convert_list; -/* mhmisc.c */ -void content_error (char *, CT, char *, ...); - -/* mhcachesbr.c */ -int find_cache (CT, int, int *, char *, char *, int); - /* * static prototypes */ @@ -590,7 +586,7 @@ init_decoded_content (CT ct, const char *filename) ct->c_ceclosefnx = close_encoding; ct->c_cesizefnx = NULL; /* since unencoded */ ct->c_encoding = CE_7BIT; /* Seems like a reasonable default */ - ct->c_file = add(filename, NULL); + ct->c_file = mh_xstrdup(FENDNULL(filename)); return OK; }