Cleaned up compiler warnings when compiled with Win32 MS/TP datalink.

This commit is contained in:
skarg
2011-01-14 15:23:03 +00:00
parent 2f9d601178
commit 624de45fc8
4 changed files with 9 additions and 4 deletions
+1
View File
@@ -25,6 +25,7 @@
#include <stddef.h>
#include <stdint.h>
#include <errno.h>
#include <string.h>
#include "event.h"
#include "device.h"
#include "datalink.h"
+5 -3
View File
@@ -28,7 +28,9 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#ifdef __BORLANDC__
#include <process.h>
#endif
#include "bacdef.h"
#include "bacaddr.h"
#include "mstp.h"
@@ -82,13 +84,13 @@ static void Timer_Silence_Reset(
SilenceTime = 0;
}
void dlmstp_millisecond_timer(
static void dlmstp_millisecond_timer(
void)
{
INCREMENT_AND_LIMIT_UINT16(SilenceTime);
}
void dlmstp_reinit(
static void dlmstp_reinit(
void)
{
/*RS485_Reinit(); */
@@ -321,7 +323,7 @@ uint16_t MSTP_Get_Send(
return pdu_len;
}
bool dlmstp_compare_data_expecting_reply(
static bool dlmstp_compare_data_expecting_reply(
uint8_t * request_pdu,
uint16_t request_pdu_len,
uint8_t src_address,
+2 -1
View File
@@ -53,6 +53,7 @@
#define WIN32_LEAN_AND_MEAN
#define STRICT 1
#include <windows.h>
#include "rs485.h"
/* details from Serial Communications in Win32 at MSDN */
@@ -89,7 +90,7 @@ static DWORD RS485_RTSControl = RTS_CONTROL_DISABLE;
* ALGORITHM: none
* NOTES: none
*****************************************************************************/
void strupper(
static void strupper(
char *str)
{
char *p;
+1
View File
@@ -35,6 +35,7 @@
#include "mstp.h"
#include "indtext.h"
#include "bacenum.h"
#include "mstptext.h"
/** @file mstptext.c Text mapping functions for BACnet MS/TP */