From 681bc21d32369e95f995a9604ffbe8b3644aaf50 Mon Sep 17 00:00:00 2001 From: Zdenek Styblik Date: Sun, 29 May 2016 21:03:25 +0200 Subject: [PATCH] ID:355 - Move section_id from ipmi_fru. to ipmi_fru.c ... since that's the only place where it's used right now. It might be worth to rework this concept. --- include/ipmitool/ipmi_fru.h | 7 ------- lib/ipmi_fru.c | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/ipmitool/ipmi_fru.h b/include/ipmitool/ipmi_fru.h index 4d255a8..b371f44 100644 --- a/include/ipmitool/ipmi_fru.h +++ b/include/ipmitool/ipmi_fru.h @@ -610,13 +610,6 @@ typedef struct ipmi_fru_bloc { uint8_t blocId[32]; } t_ipmi_fru_bloc; -static const char *section_id[4] = { - "Internal Use Section", - "Chassis Section", - "Board Section", - "Product Section" -}; - int ipmi_fru_main(struct ipmi_intf *intf, int argc, char **argv); int ipmi_fru_print(struct ipmi_intf *intf, struct sdr_record_fru_locator *fru); diff --git a/lib/ipmi_fru.c b/lib/ipmi_fru.c index 5c94b08..e5396d8 100644 --- a/lib/ipmi_fru.c +++ b/lib/ipmi_fru.c @@ -50,6 +50,13 @@ #define FRU_MULTIREC_CHUNK_SIZE (255 + sizeof(struct fru_multirec_header)) +static const char *section_id[4] = { + "Internal Use Section", + "Chassis Section", + "Board Section", + "Product Section" +}; + /* From lib/dimm_spd.c: */ int ipmi_spd_print_fru(struct ipmi_intf * intf, uint8_t id);