Blame SOURCES/0008-add-extern.patch

e20f4c
From 95f666fa10c32233ee202d8b99d05b5e13528a25 Mon Sep 17 00:00:00 2001
e20f4c
From: Vaclav Dolezal <vdolezal@redhat.com>
e20f4c
Date: Thu, 23 Jan 2020 11:26:32 +0100
e20f4c
Subject: [PATCH] hpmfwupg: move variable definition to .c file
e20f4c
e20f4c
Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
e20f4c
---
e20f4c
 include/ipmitool/ipmi_hpmfwupg.h | 2 +-
e20f4c
 lib/ipmi_hpmfwupg.c              | 2 ++
e20f4c
 2 files changed, 3 insertions(+), 1 deletion(-)
e20f4c
e20f4c
diff --git a/include/ipmitool/ipmi_hpmfwupg.h b/include/ipmitool/ipmi_hpmfwupg.h
e20f4c
index de65292..07f597b 100644
e20f4c
--- a/include/ipmitool/ipmi_hpmfwupg.h
e20f4c
+++ b/include/ipmitool/ipmi_hpmfwupg.h
e20f4c
@@ -800,7 +800,7 @@ typedef struct _VERSIONINFO {
e20f4c
 	char descString[HPMFWUPG_DESC_STRING_LENGTH + 1];
e20f4c
 }VERSIONINFO, *PVERSIONINFO;
e20f4c
 
e20f4c
-VERSIONINFO gVersionInfo[HPMFWUPG_COMPONENT_ID_MAX];
e20f4c
+extern VERSIONINFO gVersionInfo[HPMFWUPG_COMPONENT_ID_MAX];
e20f4c
 
e20f4c
 #define TARGET_VER (0x01)
e20f4c
 #define ROLLBACK_VER (0x02)
e20f4c
diff --git a/lib/ipmi_hpmfwupg.c b/lib/ipmi_hpmfwupg.c
e20f4c
index bbcffc0..d7cdcd6 100644
e20f4c
--- a/lib/ipmi_hpmfwupg.c
e20f4c
+++ b/lib/ipmi_hpmfwupg.c
e20f4c
@@ -58,6 +58,8 @@ ipmi_intf_get_max_request_data_size(struct ipmi_intf * intf);
e20f4c
 
e20f4c
 extern int verbose;
e20f4c
 
e20f4c
+VERSIONINFO gVersionInfo[HPMFWUPG_COMPONENT_ID_MAX];
e20f4c
+
e20f4c
 int HpmfwupgUpgrade(struct ipmi_intf *intf, char *imageFilename,
e20f4c
 		int activate, int, int);
e20f4c
 int HpmfwupgValidateImageIntegrity(struct HpmfwupgUpgradeCtx *pFwupgCtx);
e20f4c
-- 
e20f4c
2.20.1
e20f4c