fix compile errors

This commit is contained in:
cneilson
2012-09-12 08:39:36 +00:00
parent 6386dc8cd8
commit 77ad8cf6f4
3 changed files with 6 additions and 14 deletions
+2 -2
View File
@@ -1134,8 +1134,8 @@ void PrintHeading(
* and show them
*/
if ((value != NULL) && (value->tag == BACNET_APPLICATION_TAG_BIT_STRING)) {
printf("-- services reported by this device\r\n");
int i, len = bitstring_bits_used(&value->type.Bit_String);
printf("-- services reported by this device\r\n");
for (i = 0; i < len; i++) {
if (bitstring_bit(&value->type.Bit_String, (uint8_t) i))
printf(" %s\r\n", protocol_services_supported_text(i));
@@ -1181,8 +1181,8 @@ void PrintHeading(
* and show them
*/
if ((value != NULL) && (value->tag == BACNET_APPLICATION_TAG_BIT_STRING)) {
printf("-- objects reported by this device\r\n");
int i, len = bitstring_bits_used(&value->type.Bit_String);
printf("-- objects reported by this device\r\n");
for (i = 0; i < len; i++) {
if (bitstring_bit(&value->type.Bit_String, (uint8_t) i))
printf(" %s\r\n", bactext_object_type_name(i));