summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVaclav Dolezal <vdolezal@redhat.com>2020-01-23 11:26:32 +0100
committerAlexander Amelkin <mocbuhtig@amelkin.msk.ru>2020-02-13 13:02:48 +0300
commitc3939dac2c060651361fc71516806f9ab8c38901 (patch)
tree358b7446fac45238ebc94e1b984a5e6c231dee67
parentf80effb1fcca67fb79f7c1afd97191ee9e7b81a7 (diff)
downloadipmitool-c3939dac2c060651361fc71516806f9ab8c38901.tar.gz
hpmfwupg: move variable definition to .c file
Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
-rw-r--r--include/ipmitool/ipmi_hpmfwupg.h2
-rw-r--r--lib/ipmi_hpmfwupg.c2
2 files changed, 3 insertions, 1 deletions
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 4aa8cec..d63d2c1 100644
--- a/lib/ipmi_hpmfwupg.c
+++ b/lib/ipmi_hpmfwupg.c
@@ -50,6 +50,8 @@
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);