fixed some compiler warnings

This commit is contained in:
nova
2025-07-06 05:10:14 +02:00
parent 5185e74441
commit 88beeffafe
3 changed files with 7 additions and 15 deletions

View File

@ -13,6 +13,7 @@ extern unsigned int settings;
extern unsigned int file_modifiers;
extern unsigned int color_count;
extern color *colors;
unsigned long file_offset;
char* concat(const char *s1, const char *s2){
const size_t len1 = strlen(s1);
@ -150,10 +151,9 @@ void print_dir(WINDOW *win, unsigned long *line_width, unsigned long *dir_file_c
if (*dir_file_count > 9) {
offset_front = (snprintf(NULL, 0, "%ld", *dir_file_count)) + 1;
}
for (i = 0; i < *dir_file_count; i++) {
for (i = file_offset; i < *dir_file_count; i++) {
unsigned long offset_back = *line_width - (snprintf(NULL,0,"%ld",dir_content[i].file_size) + 1);
unsigned long allowed_width = *line_width+1;
if (dir_content[i].status & FILE_STATUS_SELECTED) {
is_selected = 1;