[PATCH 2/2] proto: kill warnings ../../nest/proto.c: In function `proto_do_show_pipe_stats': ../../nest/proto.c:814: warning: implicit declaration of function `pipe_get_peer_stats' ../../nest/proto.c:814: warning: initialization makes pointer from integer without a cast ../../nest/proto.c: At top level: ../../nest/proto.c:812: warning: 'proto_do_show_pipe_stats' defined but not used

Ondrej Filip feela at network.cz
Tue Apr 27 11:27:08 CEST 2010


On 27.4.2010 11:21, Joakim Tjernlund wrote:
> Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund at transmode.se>

Thank you. Added.

> ---
>  nest/proto.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/nest/proto.c b/nest/proto.c
> index f55def5..46147a4 100644
> --- a/nest/proto.c
> +++ b/nest/proto.c
> @@ -807,6 +807,7 @@ proto_do_show_stats(struct proto *p)
>  	  s->exp_withdraws_received, s->exp_withdraws_accepted);
>  }
>  
> +#ifdef CONFIG_PIPE
>  static void
>  proto_do_show_pipe_stats(struct proto *p)
>  {
> @@ -846,6 +847,7 @@ proto_do_show_pipe_stats(struct proto *p)
>  	  s1->exp_withdraws_received, s1->imp_withdraws_invalid,
>  	  s1->imp_withdraws_ignored, s1->imp_withdraws_accepted);
>  }
> +#endif
>  
>  void
>  proto_cmd_show(struct proto *p, unsigned int verbose, int cnt)




More information about the Bird-users mailing list