summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-protocols/openlldp/files/0004-lldptool-make-extern.patch
blob: 16b7def6841fd2bda26dfa78fe23ae007a02b06f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From 8229f4fb700ba4fcb2ec3e9956491bf5ee8c0ae2 Mon Sep 17 00:00:00 2001
From: Aaron Conole <aconole@redhat.com>
Date: Mon, 3 Aug 2020 15:17:31 -0400
Subject: [PATCH 4/9] lldptool: make extern

This should only exist per final linked object.

Signed-off-by: Aaron Conole <aconole@redhat.com>
---
 include/lldptool.h | 2 +-
 lldptool.c         | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/lldptool.h b/include/lldptool.h
index c919873..a190009 100644
--- a/include/lldptool.h
+++ b/include/lldptool.h
@@ -29,7 +29,7 @@
 
 #include "clif.h"
 
-struct lldp_head lldp_cli_head;
+extern struct lldp_head lldp_cli_head;
 
 int clif_command(struct clif *clif, char *cmd, int raw);
 void print_raw_message(char *msg, int print);
diff --git a/lldptool.c b/lldptool.c
index 664a248..d76cc48 100644
--- a/lldptool.c
+++ b/lldptool.c
@@ -64,6 +64,7 @@
 #include "lldp_util.h"
 #include "lldpad_status.h"
 
+struct lldp_head lldp_cli_head;
 struct lldp_head lldp_mod_head;
 
 static int show_raw;
-- 
2.28.0