Re: [PATCH 5/5] src: remove redundant cast near msg_name

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

 



On 31/12/10 00:40, Jan Engelhardt wrote:
> Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxx>
> ---
>  src/libnfnetlink.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/libnfnetlink.c b/src/libnfnetlink.c
> index fdd7d01..bf511f8 100644
> --- a/src/libnfnetlink.c
> +++ b/src/libnfnetlink.c
> @@ -416,7 +416,7 @@ nfnl_sendiov(const struct nfnl_handle *nfnlh, const struct iovec *iov,
>  
>  	assert(nfnlh);
>  
> -	msg.msg_name = (struct sockaddr *) &nfnlh->peer;
> +	msg.msg_name = &nfnlh->peer;
>  	msg.msg_namelen = sizeof(nfnlh->peer);
>  	msg.msg_iov = (struct iovec *) iov;
>  	msg.msg_iovlen = num;

I hit this here:

libnfnetlink.c: In function ‘nfnl_sendiov’:
libnfnetlink.c:419: warning: assignment discards qualifiers from pointer
target type

I'm going to apply the entire patchset, would you send me a patch for
this minor glitch?
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux