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

Jan Stancek jstancek@redhat.com
Fri Oct 30 10:02:38 CET 2015





----- Original Message -----
> From: "Xiao Yang" <yangx.jy@cn.fujitsu.com>
> To: ltp@lists.linux.it
> Sent: Friday, 30 October, 2015 10:34:25 PM
> Subject: [LTP] [PATCH] include/safe_macros.h: fix for SAFE_PREAD()
> 
> Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>

Pushed.

Regards,
Jan

> ---
>  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
> 
> 
> --
> Mailing list info: http://lists.linux.it/listinfo/ltp
> 


More information about the Ltp mailing list