X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=read_dword.h;h=56820b1cfaa769df8fa703361c6d67dfac2cf8a2;hb=HEAD;hp=0803bd8da9fa1f7b7d8faab22d21c27af88d4697;hpb=a2374add19570de0e72e29940b96126405dbd48d;p=platform%2Fupstream%2Fmtools.git diff --git a/read_dword.h b/read_dword.h index 0803bd8..56820b1 100644 --- a/read_dword.h +++ b/read_dword.h @@ -18,20 +18,20 @@ * along with Mtools. If not, see . */ -static Dword read_dword(int handle) +static inline Dword read_dword(int handle) { Byte val[4]; - + if(read(handle, (char *)val, 4) < 4) return (Dword) -1; return byte2dword(val); } -UNUSED(static int32_t read_sdword(int handle)) +static inline int32_t read_sdword(int handle) { Byte val[4]; - + if(read(handle, (char *)val, 4) < 4) return (int32_t) -1; @@ -40,11 +40,11 @@ UNUSED(static int32_t read_sdword(int handle)) struct SQwordRet { int64_t v; int err; }; -UNUSED(static struct SQwordRet read_sqword(int handle) ) +static inline struct SQwordRet read_sqword(int handle) { Byte val[8]; struct SQwordRet ret; - + if(read(handle, (char *)val, 8) < 8) { ret.err=-1; } else {