From d7b73eb2d28617fee74b17ed379f56cbade22f84 Mon Sep 17 00:00:00 2001 From: llsth Date: Wed, 1 Apr 2015 15:29:25 +0200 Subject: [PATCH] Fixed AROS typecasting --- app/system/preferences_amiga.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/system/preferences_amiga.cpp b/app/system/preferences_amiga.cpp index 500441a8..286d9329 100644 --- a/app/system/preferences_amiga.cpp +++ b/app/system/preferences_amiga.cpp @@ -80,14 +80,14 @@ bool AmigaPreferences::Save() bool AmigaPreferences::SavePrefs(const char* name) { - BPTR file = Open((char*)name, MODE_NEWFILE); + BPTR file = Open((CONST_STRPTR)name, MODE_NEWFILE); if (!file) { return false; } char *out = GetDescription(); - FPuts(out, file); + FPuts(file, (CONST_STRPTR)out); Close(file); return (IoErr() == NULL); }