Jeremie Courreges-Anglas <j...@wxcvbn.org> writes:

[...]

I've committed the fix below.  Thanks again for the report.

> Index: addrtoname.c
> ===================================================================
> RCS file: /d/cvs/src/usr.sbin/tcpdump/addrtoname.c,v
> retrieving revision 1.36
> diff -u -p -p -u -r1.36 addrtoname.c
> --- addrtoname.c      18 Nov 2015 15:36:20 -0000      1.36
> +++ addrtoname.c      13 Dec 2016 20:12:37 -0000
> @@ -693,11 +693,11 @@ init_ipprotoarray(void)
>               }
>  }
>  
> -/*XXX from libbpfc.a */
> -extern struct eproto {
> +/* XXX from libpcap */
> +extern const struct eproto {
>       char *s;
>       u_short p;
> -} eproto_db[];
> +} * const eproto_db;
>  
>  static void
>  init_eprotoarray(void)

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to