Blame SOURCES/0008-add-extern.patch

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