From 18f241d53ce14e775e2a66111af2d461fb3f9f01 Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 17 Sep 2017 00:02:00 +0200 Subject: [PATCH] use u8, u32, u64 in fs_defs.h --- fs_defs.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/fs_defs.h b/fs_defs.h index 1dc880b..588f0c0 100644 --- a/fs_defs.h +++ b/fs_defs.h @@ -44,17 +44,17 @@ typedef struct FSCmdBlock_ { typedef struct { - uint32_t flag; - uint32_t permission; - uint32_t owner_id; - uint32_t group_id; - uint32_t size; - uint32_t alloc_size; - uint64_t quota_size; - uint32_t ent_id; - uint64_t ctime; - uint64_t mtime; - uint8_t attributes[48]; + u32 flag; + u32 permission; + u32 owner_id; + u32 group_id; + u32 size; + u32 alloc_size; + u64 quota_size; + u32 ent_id; + u64 ctime; + u64 mtime; + u8 attributes[48]; } __attribute__((packed)) FSStat; typedef struct @@ -63,7 +63,7 @@ typedef struct char name[FS_MAX_ENTNAME_SIZE]; } FSDirEntry; -typedef void (*FSAsyncCallback)(FSClient * pClient, FSCmdBlock * pCmd, int result, void *context); +typedef void (*FSAsyncCallback)(FSClient * pClient, FSCmdBlock * pCmd, s32 result, void *context); typedef struct { FSAsyncCallback userCallback;