blob: 16b7def6841fd2bda26dfa78fe23ae007a02b06f [file] [log] [blame]
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -05001From 8229f4fb700ba4fcb2ec3e9956491bf5ee8c0ae2 Mon Sep 17 00:00:00 2001
2From: Aaron Conole <aconole@redhat.com>
3Date: Mon, 3 Aug 2020 15:17:31 -0400
4Subject: [PATCH 4/9] lldptool: make extern
5
6This should only exist per final linked object.
7
8Signed-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
14diff --git a/include/lldptool.h b/include/lldptool.h
15index 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);
27diff --git a/lldptool.c b/lldptool.c
28index 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--
402.28.0
41