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
+2 -2
View File
@@ -238,7 +238,7 @@ int cov_notify_decode_service_request(
decode_tag_number_and_value(&apdu[len], &tag_number,
&len_value);
len += decode_enumerated(&apdu[len], len_value, &property);
value->propertyIdentifier = property;
value->propertyIdentifier = (BACNET_PROPERTY_ID)property;
} else {
return -1;
}
@@ -572,7 +572,7 @@ int cov_subscribe_property_decode_service_request(
decode_tag_number_and_value(&apdu[len], &tag_number,
&len_value);
len += decode_enumerated(&apdu[len], len_value, &property);
data->monitoredProperty.propertyIdentifier = property;
data->monitoredProperty.propertyIdentifier = (BACNET_PROPERTY_ID)property;
} else
return -4;
/* the optional array index is tag 1 */