cleaned up warnings and build of unit tests

This commit is contained in:
skarg
2013-03-13 22:34:08 +00:00
parent e042ae4dea
commit bc1017ee60
4 changed files with 12 additions and 4 deletions
+1 -2
View File
@@ -1884,12 +1884,11 @@ static bool testBACnetApplicationDataValue(
BACNET_APPLICATION_DATA_VALUE * value)
{
uint8_t apdu[480] = { 0 };
int len = 0;
int apdu_len = 0;
BACNET_APPLICATION_DATA_VALUE test_value;
apdu_len = bacapp_encode_application_data(&apdu[0], value);
len = bacapp_decode_application_data(&apdu[0], apdu_len, &test_value);
bacapp_decode_application_data(&apdu[0], apdu_len, &test_value);
return bacapp_same_value(value, &test_value);
}