From 3f32a55a47be10c12c127ab5c46ff483ba2e371e Mon Sep 17 00:00:00 2001 From: asterix Date: Mon, 26 May 2008 09:19:41 +0000 Subject: [PATCH] Define a kfile_size type, and use it. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1356 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/kern/kfile.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bertos/kern/kfile.h b/bertos/kern/kfile.h index 4bb7a238..52f7991c 100644 --- a/bertos/kern/kfile.h +++ b/bertos/kern/kfile.h @@ -95,7 +95,8 @@ /* fwd decl */ struct KFile; -typedef int32_t kfile_off_t; ///< KFile offset type, used by kfile_seek function. +typedef int32_t kfile_off_t; ///< KFile offset type, used by kfile_seek function. +typedef int32_t kfile_size_t; ///< KFile size type, used in kfile struct. /** * Costants for repositioning read/write file offset. @@ -183,8 +184,8 @@ typedef struct KFile DB(id_t _type); ///< Used to keep trace, at runtime, of obj type. /* NOTE: these must _NOT_ be size_t on 16bit CPUs! */ - uint32_t seek_pos; - uint32_t size; + kfile_off_t seek_pos; + kfile_size_t size; } KFile; /** -- 2.25.1