From: John Hodge Date: Mon, 9 Jul 2012 08:24:15 +0000 (+0800) Subject: AcessNative - Fixed nativefs using the wrong off_t X-Git-Tag: rel0.15~611^2~41^2~22 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=1beec799cb77981e14f0f7464a38a0f052129449;p=tpg%2Facess2.git AcessNative - Fixed nativefs using the wrong off_t --- diff --git a/AcessNative/acesskernel_src/nativefs.c b/AcessNative/acesskernel_src/nativefs.c index 022ab78a..cfdae750 100644 --- a/AcessNative/acesskernel_src/nativefs.c +++ b/AcessNative/acesskernel_src/nativefs.c @@ -32,7 +32,7 @@ tVFS_Node *NativeFS_Mount(const char *Device, const char **Arguments); void NativeFS_Unmount(tVFS_Node *Node); tVFS_Node *NativeFS_FindDir(tVFS_Node *Node, const char *Name); char *NativeFS_ReadDir(tVFS_Node *Node, int Position); -size_t NativeFS_Read(tVFS_Node *Node, off_t Offset, size_t Length, void *Buffer); +size_t NativeFS_Read(tVFS_Node *Node, _acess_off_t Offset, size_t Length, void *Buffer); // === GLOBALS === tVFS_NodeType gNativeFS_FileNodeType = { @@ -184,7 +184,7 @@ char *NativeFS_ReadDir(tVFS_Node *Node, int Position) return ret; } -size_t NativeFS_Read(tVFS_Node *Node, off_t Offset, size_t Length, void *Buffer) +size_t NativeFS_Read(tVFS_Node *Node, _acess_off_t Offset, size_t Length, void *Buffer) { ENTER("pNode XOffset xLength pBuffer", Node, Offset, Length, Buffer); if( fseek( (void *)(tVAddr)Node->Inode, Offset, SEEK_SET ) != 0 )