diff options
Diffstat (limited to 'meta-networking/recipes-protocols/openlldp/files/0004-lldptool-make-extern.patch')
-rw-r--r-- | meta-networking/recipes-protocols/openlldp/files/0004-lldptool-make-extern.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/openlldp/files/0004-lldptool-make-extern.patch b/meta-networking/recipes-protocols/openlldp/files/0004-lldptool-make-extern.patch new file mode 100644 index 0000000000..16b7def684 --- /dev/null +++ b/meta-networking/recipes-protocols/openlldp/files/0004-lldptool-make-extern.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From 8229f4fb700ba4fcb2ec3e9956491bf5ee8c0ae2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Aaron Conole <aconole@redhat.com> | ||
3 | Date: Mon, 3 Aug 2020 15:17:31 -0400 | ||
4 | Subject: [PATCH 4/9] lldptool: make extern | ||
5 | |||
6 | This should only exist per final linked object. | ||
7 | |||
8 | Signed-off-by: Aaron Conole <aconole@redhat.com> | ||
9 | --- | ||
10 | include/lldptool.h | 2 +- | ||
11 | lldptool.c | 1 + | ||
12 | 2 files changed, 2 insertions(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/include/lldptool.h b/include/lldptool.h | ||
15 | index c919873..a190009 100644 | ||
16 | --- a/include/lldptool.h | ||
17 | +++ b/include/lldptool.h | ||
18 | @@ -29,7 +29,7 @@ | ||
19 | |||
20 | #include "clif.h" | ||
21 | |||
22 | -struct lldp_head lldp_cli_head; | ||
23 | +extern struct lldp_head lldp_cli_head; | ||
24 | |||
25 | int clif_command(struct clif *clif, char *cmd, int raw); | ||
26 | void print_raw_message(char *msg, int print); | ||
27 | diff --git a/lldptool.c b/lldptool.c | ||
28 | index 664a248..d76cc48 100644 | ||
29 | --- a/lldptool.c | ||
30 | +++ b/lldptool.c | ||
31 | @@ -64,6 +64,7 @@ | ||
32 | #include "lldp_util.h" | ||
33 | #include "lldpad_status.h" | ||
34 | |||
35 | +struct lldp_head lldp_cli_head; | ||
36 | struct lldp_head lldp_mod_head; | ||
37 | |||
38 | static int show_raw; | ||
39 | -- | ||
40 | 2.28.0 | ||
41 | |||