Bugfix/cppcheck error code fixes (#244)
* Add flawfinder. Add error code for exit status. * fix errors found by cppcheck * fix initialization warning in unit test compile Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
@@ -173,7 +173,7 @@ void handler_atomic_read_file(uint8_t *service_request,
|
||||
#if PRINT_ENABLED
|
||||
fprintf(stderr, "ARF: fileStartRecord %d, %u RecordCount.\n",
|
||||
(int)data.type.record.fileStartRecord,
|
||||
(int)data.type.record.RecordCount);
|
||||
(unsigned)data.type.record.RecordCount);
|
||||
#endif
|
||||
len = arf_ack_encode_apdu(&Handler_Transmit_Buffer[pdu_len],
|
||||
service_data->invoke_id, &data);
|
||||
|
||||
@@ -55,7 +55,7 @@ void ge_ack_print_data(
|
||||
const char *state_strs[] = { "NO", "FA", "ON", "HL", "LL" };
|
||||
printf("DeviceID\tType\tInstance\teventState\n");
|
||||
printf("--------------- ------- --------------- ---------------\n");
|
||||
int count = 0;
|
||||
unsigned int count = 0;
|
||||
while (act_data) {
|
||||
printf("%u\t\t%u\t%u\t\t%s\n", device_id,
|
||||
act_data->objectIdentifier.type,
|
||||
|
||||
Reference in New Issue
Block a user