diff options
author | Jim Meyering <jim@meyering.net> | 1997-09-14 04:07:28 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-09-14 04:07:28 +0000 |
commit | d9f0902259538b519682110f73b38b2cf2626ee0 (patch) | |
tree | cdc65dacbd0feee00d894301329c30260be6c0d7 /src/ls.c | |
parent | f61c317736bfd74a975fe626c95ac834eeffa84e (diff) | |
download | coreutils-d9f0902259538b519682110f73b38b2cf2626ee0.tar.xz |
(print_many_per_line): Add some non-essential curly braces.
Diffstat (limited to 'src/ls.c')
-rw-r--r-- | src/ls.c | 32 |
1 files changed, 19 insertions, 13 deletions
@@ -2642,24 +2642,30 @@ print_many_per_line (void) name_length = length_of_file_name_and_frills (files + filesno); for (i = 0; i < max_cols; ++i) - if (col_info[i].valid) - { - int idx = filesno / ((files_index + i) / (i + 1)); - int real_length = name_length + (idx == i ? 0 : 2); + { + if (col_info[i].valid) + { + int idx = filesno / ((files_index + i) / (i + 1)); + int real_length = name_length + (idx == i ? 0 : 2); - if (real_length > col_info[i].col_arr[idx]) - { - col_info[i].line_len += real_length - col_info[i].col_arr[idx]; - col_info[i].col_arr[idx] = real_length; - col_info[i].valid = col_info[i].line_len < line_length; - } - } + if (real_length > col_info[i].col_arr[idx]) + { + col_info[i].line_len += (real_length + - col_info[i].col_arr[idx]); + col_info[i].col_arr[idx] = real_length; + col_info[i].valid = col_info[i].line_len < line_length; + } + } + } } /* Find maximum allowed columns. */ for (cols = max_cols; cols > 1; --cols) - if (col_info[cols - 1].valid) - break; + { + if (col_info[cols - 1].valid) + break; + } + line_fmt = &col_info[cols - 1]; /* Calculate the number of rows that will be in each column except possibly |