Merge pull request #602 from ecsv/batadv-2020.3
[feed/routing.git] / bird2 / patches / 010-gcc10.patch
1 From 4bbc10614f3431c37e6352f5a6ea5c693c31021e Mon Sep 17 00:00:00 2001
2 From: Maria Matejka <mq@ucw.cz>
3 Date: Tue, 4 Feb 2020 10:11:16 +0100
4 Subject: [PATCH] Added missing extern
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Thanks to Robert Scheck <bird@robert-scheck.de> who reported it
10 and Toke Høiland-Jørgensen <toke@toke.dk> who suggested this patch.
11 ---
12 nest/route.h | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15 diff --git a/nest/route.h b/nest/route.h
16 index d2a07f09..b927db5f 100644
17 --- a/nest/route.h
18 +++ b/nest/route.h
19 @@ -458,7 +458,7 @@ typedef struct rta {
20 protocol-specific metric is availabe */
21
22
23 -const char * rta_dest_names[RTD_MAX];
24 +extern const char * rta_dest_names[RTD_MAX];
25
26 static inline const char *rta_dest_name(uint n)
27 { return (n < RTD_MAX) ? rta_dest_names[n] : "???"; }
28 --
29 2.26.2
30