Fixed various compiler warnings. Thank you, Morten Kvistgaard!
This commit is contained in:
@@ -47,6 +47,14 @@
|
||||
|
||||
/** @file s_ptransfer.c Send a Private Transfer request. */
|
||||
|
||||
/* This function is exported. Hence this unnecessary prototype. */
|
||||
uint8_t Send_Private_Transfer_Request(
|
||||
uint32_t device_id,
|
||||
uint16_t vendor_id,
|
||||
uint32_t service_number,
|
||||
char block_number,
|
||||
DATABLOCK * block);
|
||||
|
||||
uint8_t Send_Private_Transfer_Request(
|
||||
uint32_t device_id,
|
||||
uint16_t vendor_id,
|
||||
|
||||
@@ -1670,8 +1670,8 @@ void TL_fetch_property(
|
||||
{
|
||||
uint8_t ValueBuf[MAX_APDU]; /* This is a big buffer in case someone selects the device object list for example */
|
||||
uint8_t StatusBuf[3]; /* Should be tag, bits unused in last octet and 1 byte of data */
|
||||
BACNET_ERROR_CLASS error_class;
|
||||
BACNET_ERROR_CODE error_code;
|
||||
BACNET_ERROR_CLASS error_class = 0;
|
||||
BACNET_ERROR_CODE error_code = ERROR_CODE_SUCCESS;
|
||||
int iLen;
|
||||
uint8_t ucCount;
|
||||
TL_LOG_INFO *CurrentLog;
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
#define _stricmp stricmp
|
||||
#endif
|
||||
|
||||
uint8_t Send_Private_Transfer_Request(
|
||||
extern uint8_t Send_Private_Transfer_Request(
|
||||
uint32_t device_id,
|
||||
uint16_t vendor_id,
|
||||
uint32_t service_number,
|
||||
@@ -176,7 +176,6 @@ int main(
|
||||
int iCount = 0;
|
||||
int iType = 0;
|
||||
int iKey;
|
||||
static int iLimit[3] = { 7, 11, 7 };
|
||||
|
||||
if (((argc != 2) && (argc != 3)) || ((argc >= 2) &&
|
||||
(strcmp(argv[1], "--help") == 0))) {
|
||||
@@ -300,7 +299,7 @@ int main(
|
||||
NewData.cMyByte1 = iCount;
|
||||
NewData.cMyByte2 = 255 - iCount;
|
||||
NewData.fMyReal = (float) iCount;
|
||||
strcpy(NewData.sMyString, "Test Data - [x]");
|
||||
strcpy((char*)NewData.sMyString, "Test Data - [x]");
|
||||
NewData.sMyString[13] = 'a' + iCount;
|
||||
printf("Sending block %d\n", iCount);
|
||||
invoke_id =
|
||||
|
||||
@@ -42,8 +42,10 @@
|
||||
#include "bip.h"
|
||||
#include "net.h"
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma comment(lib, "Ws2_32.lib")
|
||||
#pragma comment(lib, "IPHLPAPI.lib")
|
||||
#endif
|
||||
|
||||
bool BIP_Debug = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user