-O2 related refactoring
This commit is contained in:
@ -27,6 +27,7 @@ char* concat(const char *s1, const char *s2){
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
unsigned long get_dir_size(char *path){
|
||||
DIR *dir = opendir(path);
|
||||
unsigned long entry_count = 0;
|
||||
@ -54,7 +55,6 @@ void get_dir_content(char *path, unsigned long *dir_file_count, file *dir_conten
|
||||
} else {
|
||||
scandir(path, &entry, skip_hidden_files, alphasort);
|
||||
}
|
||||
|
||||
|
||||
|
||||
unsigned long i = 0;
|
||||
@ -155,8 +155,8 @@ void print_dir(WINDOW *win, unsigned long *line_width, unsigned long *dir_file_c
|
||||
unsigned long i = 0;
|
||||
unsigned long j = 0;
|
||||
float file_size = 0;
|
||||
float printed_size;
|
||||
char size_char;
|
||||
float printed_size = 0;
|
||||
char size_char = ' ';
|
||||
char is_selected = 0;
|
||||
static const char sizes[6] = { 'B', 'K', 'M', 'G', 'T', 'P' };
|
||||
|
||||
|
Reference in New Issue
Block a user