diff options
author | Pádraig Brady <P@draigBrady.com> | 2010-04-19 08:41:50 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2011-03-23 16:44:49 +0000 |
commit | 99679fff629f4a624f4fe7a67335c6e90533afc2 (patch) | |
tree | 6791dc322532103ccb56d284f2aeac6ca4d9876b /src/find-mount-point.c | |
parent | 437fcf713c237f45f9504bb8bdc6041f65663b36 (diff) | |
download | coreutils-99679fff629f4a624f4fe7a67335c6e90533afc2.tar.xz |
df: fix alignment of columns
* src/df.c (alloc_table_row): A new function to allocate storage
for a row of strings.
(print_table): A new function to interate over all stored strings in
the table, and apply alignment honoring the max width of each column.
(get_header): Renamed from print_header, and adjusted accordingly.
(get_dev): Renamed from show_dev. Also we no longer wrap longer
device names over two lines, which can be an unexpected issue for
scripts parsing the output from df.
(get_disk): s/show_/get_/
(get_point): Likewise.
(get_entry): Likewise.
(get_all_entries): Likewise.
* NEWS: Mention the change.
Diffstat (limited to 'src/find-mount-point.c')
0 files changed, 0 insertions, 0 deletions