diff options
-rw-r--r-- | src/dmidecode.c | 1 | ||||
-rw-r--r-- | src/dmihelper.h | 23 |
2 files changed, 0 insertions, 24 deletions
diff --git a/src/dmidecode.c b/src/dmidecode.c index 4a978a9..8f2c545 100644 --- a/src/dmidecode.c +++ b/src/dmidecode.c @@ -3691,7 +3691,6 @@ xmlNode *dmi_decode(options *opt, xmlNode *prnt_n, struct dmi_header * h, u16 ve //. 0xF1 --> 0xF100 //int minor = h->type<<8; - //dmi_codes_major *dmiMajor = (dmi_codes_major *)&dmiCodesMajor[map_maj[h->type]]; dmi_codes_major *dmiMajor = (dmi_codes_major *) &dmiCodesMajor[h->type]; sect_n = xmlNewChild(prnt_n, NULL, (xmlChar *) dmiMajor->tagname, NULL); diff --git a/src/dmihelper.h b/src/dmihelper.h index bd2b7c9..70f35ad 100644 --- a/src/dmihelper.h +++ b/src/dmihelper.h @@ -15,29 +15,6 @@ #define MAXVAL 1024 -static const int map_maj[] = { - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, - 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, - 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, - 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, - 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, - 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, - 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, - 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, - 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, - 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, - 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, - 120, 121, 122, 123, 124, 125, 126, 127, -}; - -typedef struct _dmi_codes_major { - const unsigned short code; - const char *id; - const char *desc; - const char *tagname; -} dmi_codes_major; - static const dmi_codes_major dmiCodesMajor[] = { {0, "3.3.1", "BIOS Information", "BIOSinfo"}, {1, "3.3.2", "System Information", "SystemInfo"}, |