removed printf and unused var

This commit is contained in:
nova
2025-06-23 23:24:22 +02:00
parent 1a68fee59c
commit c9051b2565

View File

@ -100,12 +100,10 @@ void colors_init() {
colors = malloc(sizeof(color) * color_count);
unsigned int i = 0;
unsigned int j = 0;
/* proper pass, reads all defined extensions within /etc/DIR_COLORS */
while ((tmp = getline(&line, &size, dircolors)) != -1) {
fg = 7;
bg = 0;
printf("%d\n",j);
if (line[0] == '.') {
extension = strtok(line, " ");
colors[i].file_extension = malloc(strlen(extension)+1);
@ -117,7 +115,6 @@ void colors_init() {
i++;
}
j++;
}
} else {
init_pair(0, COLOR_WHITE, COLOR_BLACK); /* unknown file */