Fix almost all compiler warnings

lcd_api: isalpha expects type in so I cast char to int
lcd_api: uint32 in printf where %d instead of %lu
llfs: filter_ok was set but unused so I removed it
tftp: wrong casting char to uint8_t but needed to be cast to const char* instead
This commit is contained in:
2023-12-01 11:31:53 +01:00
parent b06ec97075
commit 97783c69c5
3 changed files with 6 additions and 8 deletions

View File

@@ -109,7 +109,6 @@ llfs_file_t* llfs_file_open(const char* name) {
llfs_file_t* llfs_next_file(void** mem, char* filter) {
struct llfs_data_file* prev_file = (struct llfs_data_file*)*mem;
uint8_t filter_ok = 0;
if (prev_file == NULL) {
prev_file = llfs_root;
@@ -128,7 +127,6 @@ llfs_file_t* llfs_next_file(void** mem, char* filter) {
while (prev_file != NULL) {
if (file_ext_cmp(prev_file->name, filter)) {
filter_ok = 1;
break;
}
prev_file = (struct llfs_data_file*)prev_file->next;