summaryrefslogtreecommitdiff
path: root/alpine
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2020-06-08 17:19:07 -0600
committerEduardo Chappa <chappa@washington.edu>2020-06-08 17:19:07 -0600
commitd741ceda2bd53d15d48fc1b9c4d836a9016194a7 (patch)
tree65800837f16908a3ff6f6094311f74272e10af99 /alpine
parenta340c0ecbfb80335b11bd5d5c50d130ba86b2812 (diff)
downloadalpine-d741ceda2bd53d15d48fc1b9c4d836a9016194a7.tar.xz
* Remove some compilation warnings given by clang7.
Diffstat (limited to 'alpine')
-rw-r--r--alpine/alpine.c4
-rw-r--r--alpine/imap.c2
-rw-r--r--alpine/imap.h2
-rw-r--r--alpine/xoauth2conf.c2
-rw-r--r--alpine/xoauth2conf.h2
5 files changed, 5 insertions, 7 deletions
diff --git a/alpine/alpine.c b/alpine/alpine.c
index d6e5e44e..8155f54a 100644
--- a/alpine/alpine.c
+++ b/alpine/alpine.c
@@ -715,9 +715,7 @@ main(int argc, char **argv)
}
if(max_v > 0 && max_v < (long) pith_ssl_encryption_version("tls1")){
- snprintf(tmp_20k_buf, SIZEOF_20KBUF,
- _("Security alert: SSL maximum encryption version was set to SSLv3."),
- ps_global->VAR_ENCRYPTION_RANGE);
+ strncpy(tmp_20k_buf, _("Security alert: SSL maximum encryption version was set to SSLv3."), SIZEOF_20KBUF);
tmp_20k_buf[SIZEOF_20KBUF-1] = '\0';
init_error(ps_global, SM_ORDER | SM_DING, 3, 5, tmp_20k_buf);
}
diff --git a/alpine/imap.c b/alpine/imap.c
index 556ad401..f86587e6 100644
--- a/alpine/imap.c
+++ b/alpine/imap.c
@@ -200,7 +200,7 @@ typedef struct auth_code_s {
} AUTH_CODE_S;
char *
-oauth2_get_access_code(char *url, char *method, OAUTH2_S *oauth2, int *tryanother)
+oauth2_get_access_code(unsigned char *url, char *method, OAUTH2_S *oauth2, int *tryanother)
{
char tmp[MAILTMPLEN];
char *code;
diff --git a/alpine/imap.h b/alpine/imap.h
index 3af88253..c4195fba 100644
--- a/alpine/imap.h
+++ b/alpine/imap.h
@@ -31,7 +31,7 @@ char *pine_newsrcquery(MAILSTREAM *, char *, char *);
int url_local_certdetails(char *);
void pine_sslfailure(char *, char *, unsigned long);
void mm_expunged_current(long unsigned int);
-char *oauth2_get_access_code(char *, char *, OAUTH2_S *, int *);
+char *oauth2_get_access_code(unsigned char *, char *, OAUTH2_S *, int *);
#ifdef LOCAL_PASSWD_CACHE
int get_passfile_passwd(char *, char **, char *, STRLIST_S *, int);
diff --git a/alpine/xoauth2conf.c b/alpine/xoauth2conf.c
index 2e7ce49a..97900d25 100644
--- a/alpine/xoauth2conf.c
+++ b/alpine/xoauth2conf.c
@@ -63,7 +63,7 @@ xoauth_config_line(char *server, char *id, char *secret)
* else return default values.
*/
void
-oauth2_get_client_info(char *name, char **id, char **secret)
+oauth2_get_client_info(unsigned char *name, char **id, char **secret)
{
int i;
char **lval, *name_lval, *idp, *secretp;
diff --git a/alpine/xoauth2conf.h b/alpine/xoauth2conf.h
index 25eec591..c1de4139 100644
--- a/alpine/xoauth2conf.h
+++ b/alpine/xoauth2conf.h
@@ -21,7 +21,7 @@
/* exported prototypes */
void alpine_xoauth2_configuration(struct pine *, int);
void xoauth_parse_client_info(char *, char **, char **, char **);
-void oauth2_get_client_info(char *, char **, char **);
+void oauth2_get_client_info(unsigned char *, char **, char **);
char *xoauth_config_line(char *, char *, char *);
#endif /* XOAUTH2_CONFIG */