fixed compiler error about property list function.

This commit is contained in:
skarg
2014-06-04 03:15:40 +00:00
parent 0116bcbfe7
commit 3f18b83a9d
+4 -4
View File
@@ -208,7 +208,7 @@ bool Device_Write_Property(
return status;
}
static unsigned property_list_count(
static unsigned my_property_list_count(
const int *pList)
{
unsigned property_count = 0;
@@ -248,15 +248,15 @@ void Device_Objects_Property_List(
/* Fetch the counts if available otherwise zero them */
pPropertyList->Required.count =
pPropertyList->Required.pList ==
NULL ? 0 : property_list_count(pPropertyList->Required.pList);
NULL ? 0 : my_property_list_count(pPropertyList->Required.pList);
pPropertyList->Optional.count =
pPropertyList->Optional.pList ==
NULL ? 0 : property_list_count(pPropertyList->Optional.pList);
NULL ? 0 : my_property_list_count(pPropertyList->Optional.pList);
pPropertyList->Proprietary.count =
pPropertyList->Proprietary.pList ==
NULL ? 0 : property_list_count(pPropertyList->Proprietary.pList);
NULL ? 0 : my_property_list_count(pPropertyList->Proprietary.pList);
return;
}