1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

mail/meta1: fix build with clang16

This commit is contained in:
Dirk Meyer 2023-07-06 10:25:32 +02:00
parent 0b87f3e843
commit 23e2459a2e
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- include/sm/mapcnf.h.orig 2020-12-27 19:02:05 UTC
+++ include/sm/mapcnf.h
@@ -50,7 +50,7 @@ typedef enum mapspec_kind_E mapspec_kind_T;
sm_map_P mst_##what##_map; \
char *mst_##what##_name; \
char *mst_##what##_type; \
- sm_ret_T *mst_##what##_ret
+ sm_ret_T mst_##what##_ret
#define SM_MAPSPEC_FL_IMPLDET 0x00000001u

View File

@ -0,0 +1,15 @@
--- smtps/smtps.c.orig 2022-09-24 16:59:28 UTC
+++ smtps/smtps.c
@@ -2168,9 +2168,11 @@ ss_proxy_policy(sasl_conn_t *conn, void *context, cons
return SASL_OK;
}
+typedef int (*sasl_callback_ft)(void);
+
static sasl_callback_t sm_sasl_srvcbs[] =
{
- { SASL_CB_PROXY_POLICY, &ss_proxy_policy, NULL },
+ { SASL_CB_PROXY_POLICY, (sasl_callback_ft)&ss_proxy_policy, NULL },
{ SASL_CB_LIST_END, NULL, NULL }
};
#endif