From: Julien Danjou Date: Sat, 25 Nov 2006 17:10:55 +0000 (+0100) Subject: Tag unused and kill mktemp X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=6ce74784b17c30f98db577d03b03e67d9885df47;p=apps%2Fmadmutt.git Tag unused and kill mktemp Signed-off-by: Julien Danjou Signed-off-by: Pierre Habouzit --- diff --git a/sendlib.c b/sendlib.c index 2bad9a6..cfb71cf 100644 --- a/sendlib.c +++ b/sendlib.c @@ -231,7 +231,8 @@ static void encode_base64 (fgetconv_t * fc, FILE * fout, int istext) fputc ('\n', fout); } -static void encode_8bit (fgetconv_t * fc, FILE * fout, int istext) +static void encode_8bit (fgetconv_t * fc, FILE * fout, + int istext __attribute__ ((unused))) { int ch; @@ -1112,8 +1113,8 @@ BODY *mutt_make_message_attach (CONTEXT * ctx, HEADER * hdr, int attach_msg) return (NULL); } - mutt_mktemp (buffer); - if ((fp = safe_fopen (buffer, "w+")) == NULL) + fp = m_tempfile(buffer, sizeof(buffer), NONULL(Tempdir), NULL); + if (!fp) return NULL; body = body_new(); @@ -1680,7 +1681,7 @@ static char *mutt_gen_msgid (void) return m_strdup(buf); } -static RETSIGTYPE alarm_handler (int sig) +static RETSIGTYPE alarm_handler (int sig __attribute__ ((unused))) { SigAlrm = 1; }