Skip to content

Commit 0a93923

Browse files
g++ warning fixes
1 parent 1f28064 commit 0a93923

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/wolfsshd/configuration.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ static int HandleInclude(WOLFSSHD_CONFIG *conf, const char *value)
479479
struct dirent *dir;
480480
DIR *d;
481481
char *path;
482-
char *filepath = WMALLOC(PATH_MAX, NULL, 0);
482+
char *filepath = (char*)WMALLOC(PATH_MAX, NULL, 0);
483483

484484
/* Back find the full path */
485485
while (ptr2 != value) {
@@ -490,13 +490,13 @@ static int HandleInclude(WOLFSSHD_CONFIG *conf, const char *value)
490490
}
491491

492492
if (ptr2 != value) {
493-
path = WMALLOC(ptr2 - value + 1, NULL, 0);
493+
path = (char*)WMALLOC(ptr2 - value + 1, NULL, 0);
494494
memcpy(path, value, ptr2 - value);
495495
path[ptr2 - value] = '\0';
496496
prefix = ptr2 + 1;
497497
prefixLen = (int)(ptr - ptr2 - 1);
498498
} else {
499-
path = WMALLOC(2, NULL, 0);
499+
path = (char*)WMALLOC(2, NULL, 0);
500500
memcpy(path, ".", 1);
501501
path[1] = '\0';
502502
prefix = value;

0 commit comments

Comments
 (0)