Code cleanup to get rid of some warnings during compilation.
This commit is contained in:
@@ -95,7 +95,7 @@ int bacapp_decode_device_obj_property_ref(
|
||||
{
|
||||
int len;
|
||||
int apdu_len = 0;
|
||||
|
||||
uint32_t enumValue;
|
||||
if (-1 == (len =
|
||||
decode_context_object_id(&apdu[apdu_len], 0,
|
||||
&value->objectIdentifier.type,
|
||||
@@ -106,9 +106,10 @@ int bacapp_decode_device_obj_property_ref(
|
||||
|
||||
if (-1 == (len =
|
||||
decode_context_enumerated(&apdu[apdu_len], 1,
|
||||
&value->propertyIdentifier))) {
|
||||
&enumValue))) {
|
||||
return -1;
|
||||
}
|
||||
value->propertyIdentifier = (BACNET_PROPERTY_ID)enumValue;
|
||||
apdu_len += len;
|
||||
|
||||
if (decode_is_context_tag(&apdu[apdu_len], 2)) {
|
||||
|
||||
Reference in New Issue
Block a user