From 0368fc6879e4aa4c5d82d3fa3d45a6dbc0bb57ec Mon Sep 17 00:00:00 2001 From: skarg Date: Thu, 21 Sep 2006 11:18:48 +0000 Subject: [PATCH] Moved functions only used in unit test into unit test section of the file. --- bacnet-stack/timesync.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bacnet-stack/timesync.c b/bacnet-stack/timesync.c index 71dd3de2..77839d1d 100644 --- a/bacnet-stack/timesync.c +++ b/bacnet-stack/timesync.c @@ -103,6 +103,11 @@ int timesync_decode_service_request(uint8_t * apdu, return len; } +#ifdef TEST +#include +#include +#include "ctest.h" + int timesync_decode_apdu_service(uint8_t * apdu, BACNET_UNCONFIRMED_SERVICE service, unsigned apdu_len, BACNET_DATE * my_date, BACNET_TIME * my_time) @@ -141,11 +146,6 @@ int timesync_decode_apdu(uint8_t * apdu, apdu_len, my_date, my_time); } -#ifdef TEST -#include -#include -#include "ctest.h" - void testTimeSyncData(Test * pTest, BACNET_DATE * my_date, BACNET_TIME * my_time) {