Merge pull request #14 from adamliyi/fix_lookup_0411
Using new getFRUOjbect() API to fix 'not found in lookup' error message
diff --git a/frup.c b/frup.c
index 7bdf35f..49718ba 100644
--- a/frup.c
+++ b/frup.c
@@ -948,7 +948,7 @@
return (rv);
}
-int parse_fru_area (const uint8_t area, const void* msgbuf, const uint8_t len, sd_bus_message* vpdtbl)
+int parse_fru_area (const uint8_t area, const void* msgbuf, const size_t len, sd_bus_message* vpdtbl)
{
int ret = 0;
int rv = -1;
diff --git a/frup.h b/frup.h
index 8400951..64a0562 100644
--- a/frup.h
+++ b/frup.h
@@ -10,7 +10,7 @@
/* Parse an IPMI write fru data message into a dictionary containing name value pair of VPD entries.*/
int parse_fru (const void* msgbuf, sd_bus_message* vpdtbl);
-int parse_fru_area (const uint8_t area, const void* msgbuf, const uint8_t len, sd_bus_message* vpdtbl);
+int parse_fru_area (const uint8_t area, const void* msgbuf, const size_t len, sd_bus_message* vpdtbl);
#ifdef __cplusplus
}