From 75f607bc350354ed31fd0977311917e13241e703 Mon Sep 17 00:00:00 2001 From: Albert S Date: Sat, 7 Aug 2021 12:05:58 +0200 Subject: [PATCH] qssb_append_path_policies(): Add explicit type cast for c++ --- qssb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qssb.h b/qssb.h index 825867d..51428f5 100644 --- a/qssb.h +++ b/qssb.h @@ -219,7 +219,7 @@ int qssb_append_path_policies(struct qssb_policy *qssb_policy, unsigned int path path = va_arg(args, char*); while(path != NULL) { - struct qssb_path_policy *newpolicy = calloc(1, sizeof(struct qssb_path_policy)); + struct qssb_path_policy *newpolicy = (struct qssb_path_policy *) calloc(1, sizeof(struct qssb_path_policy)); if(newpolicy == NULL) { QSSB_LOG_ERROR("Failed to allocate memory for path policy\n");