Fixed some warnings detected by CSTAT.

Consolidated some unit tests and added a single test prototype to header file.
This commit is contained in:
skarg
2016-06-08 21:55:12 +00:00
parent 57bb0d6d70
commit f8bcd58cea
9 changed files with 75 additions and 63 deletions
+5 -1
View File
@@ -417,9 +417,13 @@ extern "C" {
/* true if the tag is a closing tag */
#define IS_CLOSING_TAG(x) ((x & 0x07) == 7)
#ifdef TEST
#include "ctest.h"
void test_BACDCode(
Test * pTest);
#endif
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif
+1 -1
View File
@@ -243,7 +243,7 @@ extern "C" {
uint32_t device_id,
BACNET_ALARM_ACK_DATA * data);
void Send_UnconfirmedPrivateTransfer(
int Send_UnconfirmedPrivateTransfer(
BACNET_ADDRESS * dest,
BACNET_PRIVATE_TRANSFER_DATA * private_data);
+3 -2
View File
@@ -190,8 +190,7 @@ extern "C" {
int handler_timesync_encode_recipients(
uint8_t * apdu,
int max_apdu);
void handler_timesync_task(
void);
void handler_timesync_task(BACNET_DATE_TIME *bdatetime);
void handler_timesync_init(
void);
bool handler_timesync_recipient_write(
@@ -233,6 +232,8 @@ extern "C" {
uint16_t service_len,
BACNET_ADDRESS * src,
BACNET_CONFIRMED_SERVICE_DATA * service_data);
bool handler_cov_fsm(
void);
void handler_cov_task(
void);
void handler_cov_timer_seconds(