diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-01-26 10:39:48 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-01-26 10:39:48 -0800 |
commit | e4ef3f03d9f01f92482fa9ac7ec18f54a6847c65 (patch) | |
tree | 0ad2e5925b02ca48c810d8cd3bae9e31fa777e16 | |
parent | bbf9c8046cf93f8307c6856acc9d23f86a746547 (diff) | |
download | c-snippets-e4ef3f03d9f01f92482fa9ac7ec18f54a6847c65.tar.gz c-snippets-e4ef3f03d9f01f92482fa9ac7ec18f54a6847c65.tar.bz2 c-snippets-e4ef3f03d9f01f92482fa9ac7ec18f54a6847c65.zip |
Remove unused parameter in compute_alignment_score.
Reported by Stan Marsh.
-rw-r--r-- | autotab.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -396,7 +396,7 @@ static int smatch(const char *str, const char *bag0, ...) return match; } -static long compute_alignment_score(line_t *lines, int tabsize, int shiftwidth) +static long compute_alignment_score(line_t *lines, int shiftwidth) { line_t *next; long lineno0, lineno1; @@ -690,7 +690,7 @@ static int determine_tabsize(line_t *lines) shiftwidth = determine_shiftwidth(lines_retabbed, tabsize, 1); - score = compute_alignment_score(lines_retabbed, tabsize, shiftwidth); + score = compute_alignment_score(lines_retabbed, shiftwidth); /* Scores for common tab sizes get a boost; 8 a bit more than 4. */ switch (tabsize) { |