summaryrefslogtreecommitdiff
path: root/pith/mailview.c
diff options
context:
space:
mode:
Diffstat (limited to 'pith/mailview.c')
-rw-r--r--pith/mailview.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pith/mailview.c b/pith/mailview.c
index c2c7842c..f032a0b2 100644
--- a/pith/mailview.c
+++ b/pith/mailview.c
@@ -387,8 +387,6 @@ format_calendar_vevent(VCALENDAR_S *vcal, ATTACH_S *a, HANDLE_S **handlesp, int
if(cflags & FC_SUMMARY){
COLOR_PAIR *lastc = NULL;
- char numbuf[50];
- int thisdescwid;
COLOR_PAIR *hdrcolor = NULL;
if((flgs & FM_DISPLAY)
@@ -508,7 +506,7 @@ format_calendar(long int msgno, BODY *body, HANDLE_S **handlesp, int flgs, int w
for(a = ps_global->atmts; a->description != NULL; a++){
if(MIME_VCALENDAR(a->body->type, a->body->subtype)){
- b = mail_body (ps_global->mail_stream, msgno, a->number);
+ b = mail_body (ps_global->mail_stream, msgno, (unsigned char *) a->number);
if(b == NULL){
gf_puts(_("Error fetching calendar body part"), pc);
gf_puts(NEWLINE, pc);
@@ -524,7 +522,7 @@ format_calendar(long int msgno, BODY *body, HANDLE_S **handlesp, int flgs, int w
rawtext[callen] = '\0'; /* chop off cookie */
switch(b->encoding){
case ENCBASE64:
- caltext = rfc822_base64(rawtext, strlen(rawtext), &callen);
+ caltext = rfc822_base64((unsigned char *) rawtext, strlen(rawtext), &callen);
if(caltext == NULL){
gf_puts(_("Error in calendar base64 encoding"), pc);
gf_puts(NEWLINE, pc);