diff options
author | Eduardo Chappa <chappa@washington.edu> | 2021-04-08 08:53:12 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2021-04-08 08:53:12 -0600 |
commit | 7ca059d80aae996ff3031aca15241a55e255a0f5 (patch) | |
tree | 5b7ca64156469d2ba4f89d1de00871d75ca4626f /pith/mailview.c | |
parent | 4f13a7bcddc60430203fd545a3c584b3e9fc27aa (diff) | |
download | alpine-7ca059d80aae996ff3031aca15241a55e255a0f5.tar.xz |
* Clear out some warnings given by gcc 10.
Diffstat (limited to 'pith/mailview.c')
-rw-r--r-- | pith/mailview.c | 6 |
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); |