@@ -122,8 +122,8 @@ struct lc_pkcs7_message {
122122 */
123123#define LC_PKCS7_MSG_SIZE (num_sinfo , num_x509 ) \
124124 sizeof(struct lc_pkcs7_message) + \
125- num_sinfo * sizeof(struct lc_pkcs7_signed_info) + \
126- num_x509 * sizeof(struct lc_x509_certificate)
125+ num_sinfo * sizeof(struct lc_pkcs7_signed_info) + \
126+ num_x509 * sizeof(struct lc_x509_certificate)
127127
128128/**
129129 * @ingroup PKCS7
@@ -152,19 +152,22 @@ struct lc_pkcs7_message {
152152 _Pragma("GCC diagnostic push") _Pragma( \
153153 "GCC diagnostic ignored \"-Wdeclaration-after-statement\"") \
154154 _Pragma("GCC diagnostic ignored \"-Wcast-align\"") \
155- LC_ALIGNED_BUFFER(name##_ctx_buf, \
156- LC_PKCS7_MSG_SIZE(num_sinfo, num_x509), 8); \
155+ LC_ALIGNED_BUFFER( \
156+ name##_ctx_buf, \
157+ LC_PKCS7_MSG_SIZE(num_sinfo, num_x509), 8); \
157158 struct lc_pkcs7_message *name = \
158159 (struct lc_pkcs7_message *)name##_ctx_buf; \
159160 (name)->avail_preallocated_sinfo = num_sinfo; \
160161 (name)->preallocated_sinfo = \
161- (struct lc_pkcs7_signed_info *)((uint8_t *)(name) + \
162- sizeof(struct lc_pkcs7_message)); \
162+ (struct lc_pkcs7_signed_info \
163+ *)((uint8_t *)(name) + \
164+ sizeof(struct lc_pkcs7_message)); \
163165 (name)->avail_preallocated_x509 = num_x509; \
164166 (name)->preallocated_x509 = \
165- (struct lc_x509_certificate *)((uint8_t *)(name) + \
166- sizeof(struct lc_pkcs7_message) + \
167- num_sinfo * sizeof(struct lc_pkcs7_signed_info)); \
167+ (struct lc_x509_certificate \
168+ *)((uint8_t *)(name) + \
169+ sizeof(struct lc_pkcs7_message) + \
170+ num_sinfo * sizeof(struct lc_pkcs7_signed_info)); \
168171 _Pragma("GCC diagnostic pop")
169172
170173#ifdef __cplusplus
0 commit comments