This fixes a few locations with a hardcoded type within `sizeof()`.
static inline struct bind_conf *bind_conf_alloc(struct proxy *fe, const char *file,
int line, const char *arg, struct xprt_ops *xprt)
{
- struct bind_conf *bind_conf = calloc(1, sizeof(struct bind_conf));
+ struct bind_conf *bind_conf = calloc(1, sizeof(*bind_conf));
if (!bind_conf)
goto err;
int ret;
if (unlikely(b_is_null(&ctx->str))) {
- area = calloc(USERMSGS_CTX_BUFSIZE, sizeof(char));
+ area = calloc(USERMSGS_CTX_BUFSIZE, sizeof(*area));
if (area)
ctx->str = b_make(area, USERMSGS_CTX_BUFSIZE, 0, 0);
}