diff --git a/src/system/boot/platform/atari_m68k/Handle.cpp b/src/system/boot/platform/atari_m68k/Handle.cpp index 1f5282cedb..f3d77c9f59 100644 --- a/src/system/boot/platform/atari_m68k/Handle.cpp +++ b/src/system/boot/platform/atari_m68k/Handle.cpp @@ -9,7 +9,7 @@ #include #include "Handle.h" -#include "toscalls." +#include "toscalls.h" /* * (X)BIOS supports char and block devices with a separate namespace @@ -27,7 +27,7 @@ Handle::Handle(int handle) : - fHandle((int16)handle), + fHandle((int16)handle) { } @@ -97,7 +97,8 @@ CharHandle::~CharHandle() ssize_t CharHandle::ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize) { - const char *string = (const char *)buffer; + char *string = (char *)buffer; + int i; // can't seek for (i = 0; i < bufferSize; i++) { @@ -114,6 +115,7 @@ ssize_t CharHandle::WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSize) { const char *string = (const char *)buffer; + int i; // can't seek @@ -126,11 +128,3 @@ CharHandle::WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSi } -off_t -CharHandle::Size() const -{ - // ToDo: fix this! - return 1024LL * 1024 * 1024 * 1024; - // 1024 GB -} - diff --git a/src/system/boot/platform/atari_m68k/Jamfile b/src/system/boot/platform/atari_m68k/Jamfile index fffd70d3ff..b8a4dea566 100644 --- a/src/system/boot/platform/atari_m68k/Jamfile +++ b/src/system/boot/platform/atari_m68k/Jamfile @@ -26,6 +26,7 @@ KernelMergeObject boot_platform_atari_m68k.o : #bios.S console.cpp #serial.cpp + Handle.cpp devices.cpp keyboard.cpp menu.cpp