You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.3 KiB

  1. From c3939dac2c060651361fc71516806f9ab8c38901 Mon Sep 17 00:00:00 2001
  2. From: Vaclav Dolezal <vdolezal@redhat.com>
  3. Date: Thu, 23 Jan 2020 11:26:32 +0100
  4. Subject: [PATCH] hpmfwupg: move variable definition to .c file
  5. Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
  6. ---
  7. include/ipmitool/ipmi_hpmfwupg.h | 2 +-
  8. lib/ipmi_hpmfwupg.c | 2 ++
  9. 2 files changed, 3 insertions(+), 1 deletion(-)
  10. diff --git a/include/ipmitool/ipmi_hpmfwupg.h b/include/ipmitool/ipmi_hpmfwupg.h
  11. index de65292b..07f597be 100644
  12. --- a/include/ipmitool/ipmi_hpmfwupg.h
  13. +++ b/include/ipmitool/ipmi_hpmfwupg.h
  14. @@ -800,7 +800,7 @@ typedef struct _VERSIONINFO {
  15. char descString[HPMFWUPG_DESC_STRING_LENGTH + 1];
  16. }VERSIONINFO, *PVERSIONINFO;
  17. -VERSIONINFO gVersionInfo[HPMFWUPG_COMPONENT_ID_MAX];
  18. +extern VERSIONINFO gVersionInfo[HPMFWUPG_COMPONENT_ID_MAX];
  19. #define TARGET_VER (0x01)
  20. #define ROLLBACK_VER (0x02)
  21. diff --git a/lib/ipmi_hpmfwupg.c b/lib/ipmi_hpmfwupg.c
  22. index 4aa8cecd..d63d2c15 100644
  23. --- a/lib/ipmi_hpmfwupg.c
  24. +++ b/lib/ipmi_hpmfwupg.c
  25. @@ -58,6 +58,8 @@
  26. extern int verbose;
  27. +VERSIONINFO gVersionInfo[HPMFWUPG_COMPONENT_ID_MAX];
  28. +
  29. int HpmfwupgUpgrade(struct ipmi_intf *intf, char *imageFilename,
  30. int activate, int, int);
  31. int HpmfwupgValidateImageIntegrity(struct HpmfwupgUpgradeCtx *pFwupgCtx);