Skip to content

Commit

Permalink
mail/meta1: fix build with clang16
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirk Meyer authored and Dirk Meyer committed Jul 6, 2023
1 parent 0b87f3e commit 23e2459
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mail/meta1/files/patch-include_sm_mapcnf.h
@@ -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

15 changes: 15 additions & 0 deletions mail/meta1/files/patch-smtps_smtps.c
@@ -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

0 comments on commit 23e2459

Please sign in to comment.