Re: [conntrack-tools PATCH] helpers: Fix for warning when compiling against libtirpc

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

 



On 11/11/19 6:20 PM, Phil Sutter wrote:
> Fix for the following warning:
> 
> In file included from rpc.c:29:
> /usr/include/tirpc/rpc/rpc_msg.h:214:52: warning: 'struct rpc_err' declared inside parameter list will not be visible outside of this definition or declaration
>   214 | extern void _seterr_reply(struct rpc_msg *, struct rpc_err *);
>       |                                                    ^~~~~~~
> 
> Struct rpc_err is declared in rpc/clnt.h which also declares rpc_call(),
> therefore rename the local version.
> 
> Fixes: 5ededc4476f27 ("conntrackd: search for RPC headers")
> Signed-off-by: Phil Sutter <phil@xxxxxx>
> ---
>  src/helpers/rpc.c | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 

Acked-by: Arturo Borrero Gonzalez <arturo@xxxxxxxxxxxxx>



[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux