cleaned up compiler warnings
This commit is contained in:
@@ -224,6 +224,12 @@ extern "C" {
|
||||
/* from clause 20.2.9 Encoding of a Character String Value */
|
||||
/* and 20.2.1 General Rules for Encoding BACnet Tags */
|
||||
/* returns the number of apdu bytes consumed */
|
||||
uint32_t encode_bacnet_character_string_safe(
|
||||
uint8_t * apdu,
|
||||
uint32_t max_apdu,
|
||||
uint8_t encoding,
|
||||
char *pString,
|
||||
uint32_t length);
|
||||
int encode_bacnet_character_string(
|
||||
uint8_t * apdu,
|
||||
BACNET_CHARACTER_STRING * char_string);
|
||||
|
||||
@@ -995,7 +995,7 @@ uint32_t encode_bacnet_character_string_safe(
|
||||
uint32_t length)
|
||||
{
|
||||
uint32_t apdu_len = 1 /*encoding*/;
|
||||
int len, i;
|
||||
int i;
|
||||
|
||||
apdu_len += length;
|
||||
if (apdu && (apdu_len <= max_apdu)) {
|
||||
|
||||
Reference in New Issue
Block a user