delloem: Fix the unalign bug in arm64

For computers using the arm64 of the Apple chip, the link requires strict
alignment of pointers in 32-bit form. Replace the struct vFlashstr to valstr.
Replace the Function get_vFlash_compcode_str to val2str.

Resolves ipmitool/ipmitool#332
Signed-off-by: SliderLu <314238828@qq.com>
This commit is contained in:
SliderLu
2022-11-16 23:39:49 +08:00
committed by Alexander Amelkin
parent 8f0946a81e
commit 206dba615d
2 changed files with 2 additions and 30 deletions

View File

@@ -343,10 +343,6 @@ typedef struct _power_headroom
uint16_t peakheadroom;
} __attribute__ ((packed)) POWER_HEADROOM;
struct vFlashstr {
uint8_t val;
const char * str;
};
typedef struct ipmi_vFlash_extended_info
{
uint8_t vflashcompcode;