Re: [PATCH] mount: Add missing cast to getsockname

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 4/14/19 10:08 PM, Rosen Penev wrote:
> Otherwise compilation can fail with incompatible pointer type.
> 
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
Committed.... 

steved.

> ---
>  utils/mount/network.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/utils/mount/network.c b/utils/mount/network.c
> index fc21110..e166a82 100644
> --- a/utils/mount/network.c
> +++ b/utils/mount/network.c
> @@ -1062,7 +1062,7 @@ int clnt_ping(struct sockaddr_in *saddr, const unsigned long prog,
>  	if (caddr) {
>  		/* Get the address of our end of this connection */
>  		socklen_t len = sizeof(*caddr);
> -		if (getsockname(sock, caddr, &len) != 0)
> +		if (getsockname(sock, (struct sockaddr *) caddr, &len) != 0)
>  			caddr->sin_family = 0;
>  	}
>  
> 



[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux