Bugfix/clang tidy applied 2022 (#232)

* clang-tidy applied fixes to src folder
* clang-tidy applied fixes to apps folder

Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
Steve Karg
2022-02-27 19:14:17 -06:00
committed by GitHub
parent 5e70eeecfc
commit d0fe77c030
33 changed files with 211 additions and 123 deletions
+6 -4
View File
@@ -190,15 +190,17 @@ int main(int argc, char *argv[])
tag = strtol(argv[7], NULL, 0);
value_string = argv[8];
/* optional priority */
if (argc > 9)
if (argc > 9) {
value_list.priority = strtol(argv[9], NULL, 0);
else
} else {
value_list.priority = BACNET_NO_PRIORITY;
}
/* optional index */
if (argc > 10)
if (argc > 10) {
value_list.propertyArrayIndex = strtol(argv[10], NULL, 0);
else
} else {
value_list.propertyArrayIndex = BACNET_ARRAY_ALL;
}
if (cov_data.initiatingDeviceIdentifier >= BACNET_MAX_INSTANCE) {
fprintf(stderr, "device-instance=%u - it must be less than %u\r\n",