Added missing extern

Thanks to Robert Scheck <bird@robert-scheck.de> who reported it
and Toke Høiland-Jørgensen <toke@toke.dk> who suggested this patch.
This commit is contained in:
Maria Matejka 2020-02-04 10:11:16 +01:00
parent 7f9adafc10
commit 4bbc10614f

View file

@ -458,7 +458,7 @@ typedef struct rta {
protocol-specific metric is availabe */ protocol-specific metric is availabe */
const char * rta_dest_names[RTD_MAX]; extern const char * rta_dest_names[RTD_MAX];
static inline const char *rta_dest_name(uint n) static inline const char *rta_dest_name(uint n)
{ return (n < RTD_MAX) ? rta_dest_names[n] : "???"; } { return (n < RTD_MAX) ? rta_dest_names[n] : "???"; }