From 0a939230674d7e5c200867d9161c56d3467242ac Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Mon, 22 Aug 2022 17:31:02 -0600 Subject: [PATCH] g++ warning fixes --- apps/wolfsshd/configuration.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/wolfsshd/configuration.c b/apps/wolfsshd/configuration.c index 695f40b2..31178a22 100644 --- a/apps/wolfsshd/configuration.c +++ b/apps/wolfsshd/configuration.c @@ -479,7 +479,7 @@ static int HandleInclude(WOLFSSHD_CONFIG *conf, const char *value) struct dirent *dir; DIR *d; char *path; - char *filepath = WMALLOC(PATH_MAX, NULL, 0); + char *filepath = (char*)WMALLOC(PATH_MAX, NULL, 0); /* Back find the full path */ while (ptr2 != value) { @@ -490,13 +490,13 @@ static int HandleInclude(WOLFSSHD_CONFIG *conf, const char *value) } if (ptr2 != value) { - path = WMALLOC(ptr2 - value + 1, NULL, 0); + path = (char*)WMALLOC(ptr2 - value + 1, NULL, 0); memcpy(path, value, ptr2 - value); path[ptr2 - value] = '\0'; prefix = ptr2 + 1; prefixLen = (int)(ptr - ptr2 - 1); } else { - path = WMALLOC(2, NULL, 0); + path = (char*)WMALLOC(2, NULL, 0); memcpy(path, ".", 1); path[1] = '\0'; prefix = value;