Bugfix/c89 compile fixes (#327)
* Fix code to be able to compile with older C89 ANSI compilers * Convert C++ comments to C89 comments. * default to std=gnu89 * Fix to enable CMake 3.1 to build on Centos7 Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
@@ -674,15 +674,15 @@ bool Trend_Log_Write_Property(BACNET_WRITE_PROPERTY_DATA *wp_data)
|
||||
len = bacapp_decode_device_obj_property_ref(
|
||||
wp_data->application_data, &TempSource);
|
||||
if ((len < 0) ||
|
||||
(len > wp_data->application_data_len)) // Hmm, that didn't go
|
||||
// as planned...
|
||||
(len > wp_data->application_data_len)) /* Hmm, that didn't go */
|
||||
/* as planned... */
|
||||
{
|
||||
wp_data->error_class = ERROR_CLASS_PROPERTY;
|
||||
wp_data->error_code = ERROR_CODE_OTHER;
|
||||
break;
|
||||
}
|
||||
|
||||
// We only support references to objects in ourself for now
|
||||
/* We only support references to objects in ourself for now */
|
||||
if ((TempSource.deviceIdentifier.type == OBJECT_DEVICE) &&
|
||||
(TempSource.deviceIdentifier.instance !=
|
||||
Device_Object_Instance_Number())) {
|
||||
|
||||
Reference in New Issue
Block a user