[LTP] [PATCH] include/safe_macros.h: fix for SAFE_PREAD()

Xiao Yang yangx.jy@cn.fujitsu.com
Fri Oct 30 22:34:25 CET 2015


Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
---
 include/safe_macros.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/safe_macros.h b/include/safe_macros.h
index e938f17..79edf5a 100644
--- a/include/safe_macros.h
+++ b/include/safe_macros.h
@@ -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



More information about the Ltp mailing list