projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add type include. Fix semicolon.
[bertos.git]
/
bertos
/
kern
/
kfile.h
diff --git
a/bertos/kern/kfile.h
b/bertos/kern/kfile.h
index 4bb7a2380946748f6063e3d6bc56cc689ba0d707..52f7991c88b75bf5112c65a0c26cdf2499ef70e2 100644
(file)
--- a/
bertos/kern/kfile.h
+++ b/
bertos/kern/kfile.h
@@
-95,7
+95,8
@@
/* fwd decl */
struct KFile;
/* 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.
/**
* 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! */
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;
/**
} KFile;
/**