CPPCheck found fixes.
This commit is contained in:
@@ -998,7 +998,7 @@ int CheckCommandLineArgs(
|
|||||||
/* loop counter */
|
/* loop counter */
|
||||||
unsigned j;
|
unsigned j;
|
||||||
count =
|
count =
|
||||||
sscanf(argv[i], "%x:%x:%x:%x:%x:%x", &mac[0],
|
sscanf(argv[i], "%2x:%2x:%2x:%2x:%2x:%2x", &mac[0],
|
||||||
&mac[1], &mac[2], &mac[3], &mac[4], &mac[5]);
|
&mac[1], &mac[2], &mac[3], &mac[4], &mac[5]);
|
||||||
if (count == 6) { /* success */
|
if (count == 6) { /* success */
|
||||||
Target_Address.mac_len = count;
|
Target_Address.mac_len = count;
|
||||||
|
|||||||
@@ -180,10 +180,10 @@ void Initialize_Device_Addresses(
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
int i = 0; /* First entry is Gateway Device */
|
int i = 0; /* First entry is Gateway Device */
|
||||||
DEVICE_OBJECT_DATA *pDev;
|
DEVICE_OBJECT_DATA *pDev = NULL;
|
||||||
uint16_t myPort;
|
|
||||||
/* Setup info for the main gateway device first */
|
/* Setup info for the main gateway device first */
|
||||||
#if defined(BACDL_BIP)
|
#if defined(BACDL_BIP)
|
||||||
|
uint16_t myPort;
|
||||||
struct in_addr *netPtr; /* Lets us cast to this type */
|
struct in_addr *netPtr; /* Lets us cast to this type */
|
||||||
uint8_t *gatewayMac = NULL;
|
uint8_t *gatewayMac = NULL;
|
||||||
uint32_t myAddr = bip_get_addr();
|
uint32_t myAddr = bip_get_addr();
|
||||||
|
|||||||
Reference in New Issue
Block a user