include/safe_macros.h: fix for SAFE_PREAD()
PATCH 1/1 include/safe_macros.h: fix for SAFE_PREAD()
Signed-off-by Xiao Yang <[email protected]>
--- include/safe_macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/safe_macros.h +1 -1
@@ -111,7 +111,7 @@ ssize_t safe_read(const char *file, const int lineno,ssize_t safe_pread (const char *file,const int lineno,void (*cleanup_fn)(void ),char len_strict,int fildes,void *buf,size_t nbyte,off_t offset); -#define SAFE_PREAD (cleanup_fn, len_strict, fildes, buf, nbyte) \ +#define SAFE_PREAD (cleanup_fn, len_strict, fildes, buf, nbyte, offset) \ safe_pread(__FILE__, __LINE__, cleanup_fn, (len_strict), (fildes), \ (buf), (nbyte), (offset))
Signature · 1 line
1.8.3.1
PATCH 1/1 include/safe_macros.h: fix for SAFE_PREAD()
----- Original Message -----
Quoted 6 lines
From: "Xiao Yang" <[email protected]>
To: [email protected]
Sent: Friday, 30 October, 2015 10:34:25 PM
Subject: [LTP] [PATCH]include/safe_macros.h: fix forSAFE_PREAD()Signed-off-by Xiao Yang <[email protected]>
Pushed.
Regards,
Jan
Quoted 25 lines
--- include/safe_macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/safe_macros.h +1
-2@@ -111,7 +111,7 @@ ssize_t safe_read(const char *file, const int lineno,ssize_t safe_pread (const char *file,const int lineno,void (*cleanup_fn)(void ),char len_strict,int fildes,void *buf,size_t nbyte,off_t offset); -#define SAFE_PREAD (cleanup_fn, len_strict, fildes, buf, nbyte) \ +#define SAFE_PREAD (cleanup_fn, len_strict, fildes, buf, nbyte, offset) \ safe_pread(__FILE__, __LINE__, cleanup_fn, (len_strict), (fildes), \ (buf), (nbyte), (offset)) --1.8.3.1
--
Mailing list info: http://lists.linux.it/listinfo/ltp