3a916f902c
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/ipmitool#c3139cba8580b3e661b87d9252c9e16774a57294
41 lines
1.3 KiB
Diff
41 lines
1.3 KiB
Diff
From 95f666fa10c32233ee202d8b99d05b5e13528a25 Mon Sep 17 00:00:00 2001
|
|
From: Vaclav Dolezal <vdolezal@redhat.com>
|
|
Date: Thu, 23 Jan 2020 11:26:32 +0100
|
|
Subject: [PATCH] hpmfwupg: move variable definition to .c file
|
|
|
|
Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
|
|
---
|
|
include/ipmitool/ipmi_hpmfwupg.h | 2 +-
|
|
lib/ipmi_hpmfwupg.c | 2 ++
|
|
2 files changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/include/ipmitool/ipmi_hpmfwupg.h b/include/ipmitool/ipmi_hpmfwupg.h
|
|
index de65292..07f597b 100644
|
|
--- a/include/ipmitool/ipmi_hpmfwupg.h
|
|
+++ b/include/ipmitool/ipmi_hpmfwupg.h
|
|
@@ -800,7 +800,7 @@ typedef struct _VERSIONINFO {
|
|
char descString[HPMFWUPG_DESC_STRING_LENGTH + 1];
|
|
}VERSIONINFO, *PVERSIONINFO;
|
|
|
|
-VERSIONINFO gVersionInfo[HPMFWUPG_COMPONENT_ID_MAX];
|
|
+extern VERSIONINFO gVersionInfo[HPMFWUPG_COMPONENT_ID_MAX];
|
|
|
|
#define TARGET_VER (0x01)
|
|
#define ROLLBACK_VER (0x02)
|
|
diff --git a/lib/ipmi_hpmfwupg.c b/lib/ipmi_hpmfwupg.c
|
|
index bbcffc0..d7cdcd6 100644
|
|
--- a/lib/ipmi_hpmfwupg.c
|
|
+++ b/lib/ipmi_hpmfwupg.c
|
|
@@ -58,6 +58,8 @@ ipmi_intf_get_max_request_data_size(struct ipmi_intf * intf);
|
|
|
|
extern int verbose;
|
|
|
|
+VERSIONINFO gVersionInfo[HPMFWUPG_COMPONENT_ID_MAX];
|
|
+
|
|
int HpmfwupgUpgrade(struct ipmi_intf *intf, char *imageFilename,
|
|
int activate, int, int);
|
|
int HpmfwupgValidateImageIntegrity(struct HpmfwupgUpgradeCtx *pFwupgCtx);
|
|
--
|
|
2.20.1
|
|
|