Skip to content

Commit 7ab2b27

Browse files
committed
Fix warning on FATFS builds
Triggered on a customer's FATFS build with -Werror.
1 parent d3bd96f commit 7ab2b27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wolfssh/port.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ extern "C" {
267267
}
268268

269269
if (*f == 0) {
270-
*f = WMALLOC(sizeof(FIL), NULL, 0);
270+
*f = (FIL*)WMALLOC(sizeof(FIL), NULL, 0);
271271
}
272272
#ifdef WOLFSSH_XILFATFS
273273
m = FA_CREATE_ALWAYS;

0 commit comments

Comments
 (0)