[sheepdog] [PATCH] group: fix compile error

MORITA Kazutaka morita.kazutaka at gmail.com
Tue Sep 24 03:01:30 CEST 2013


At Mon, 23 Sep 2013 16:02:34 +0800,
Liu Yuan wrote:
> 
> ----
> roup.c:361:45: warning: argument to ‘sizeof’ in ‘memcpy’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
>     memcpy(timestamp, buf + nodes_len, sizeof(timestamp));
> ----
> 
> We should pass the real length instead of length of pointer
> 
> Signed-off-by: Liu Yuan <namei.unix at gmail.com>
> ---
>  sheep/group.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied, thanks.

Kazutaka



More information about the sheepdog mailing list