Fixed compiler warnings.
This commit is contained in:
@@ -58,10 +58,6 @@ static uint8_t Rx_Buf[MAX_MPDU] = { 0 };
|
|||||||
/* global variables used in this file */
|
/* global variables used in this file */
|
||||||
static int32_t Target_Object_Instance_Min = -1;
|
static int32_t Target_Object_Instance_Min = -1;
|
||||||
static int32_t Target_Object_Instance_Max = -1;
|
static int32_t Target_Object_Instance_Max = -1;
|
||||||
static int32_t Target_Network = BACNET_BROADCAST_NETWORK;
|
|
||||||
static char Target_Mac[7];
|
|
||||||
static uint32_t Target_MacLen = 0;
|
|
||||||
static bool verbose = true;
|
|
||||||
static bool Error_Detected = false;
|
static bool Error_Detected = false;
|
||||||
|
|
||||||
#define BAC_ADDRESS_MULT 1
|
#define BAC_ADDRESS_MULT 1
|
||||||
@@ -344,7 +340,7 @@ int print_help(char* exe_name){
|
|||||||
"%s 123: 1000 9000\n\n"
|
"%s 123: 1000 9000\n\n"
|
||||||
"To send a WhoIs request to all devices:\n"
|
"To send a WhoIs request to all devices:\n"
|
||||||
"%s\n\n",
|
"%s\n\n",
|
||||||
exe_name,exe_name,exe_name,exe_name,exe_name,exe_name,exe_name,exe_name);
|
exe_name,exe_name,exe_name,exe_name,exe_name,exe_name,exe_name);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -359,7 +355,6 @@ int parse_bac_address(
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
int z = 0;
|
|
||||||
uint16_t s;
|
uint16_t s;
|
||||||
int a[4],p;
|
int a[4],p;
|
||||||
int c = sscanf(src,"%u.%u.%u.%u:%u",&a[0],&a[1],&a[2],&a[3],&p);
|
int c = sscanf(src,"%u.%u.%u.%u:%u",&a[0],&a[1],&a[2],&a[3],&p);
|
||||||
|
|||||||
Reference in New Issue
Block a user