Code cleanup to get rid of some warnings during compilation.

This commit is contained in:
minack
2009-07-08 22:25:54 +00:00
parent bee5bf3ac2
commit 88f3aab51d
12 changed files with 54 additions and 44 deletions
+3 -2
View File
@@ -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)) {