Reorganised the declarations and initialisers in apdu_service_supported_to_index() to separate the locals from the parameters.
This commit is contained in:
@@ -182,9 +182,9 @@ bool apdu_service_supported_to_index(
|
|||||||
bool *bIsConfirmed )
|
bool *bIsConfirmed )
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
*bIsConfirmed = false;
|
|
||||||
bool found = false;
|
bool found = false;
|
||||||
|
|
||||||
|
*bIsConfirmed = false;
|
||||||
if (service_supported < MAX_BACNET_SERVICES_SUPPORTED) {
|
if (service_supported < MAX_BACNET_SERVICES_SUPPORTED) {
|
||||||
/* is it a confirmed service? */
|
/* is it a confirmed service? */
|
||||||
for (i = 0; i < MAX_BACNET_CONFIRMED_SERVICE; i++) {
|
for (i = 0; i < MAX_BACNET_CONFIRMED_SERVICE; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user