summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-01-26 10:39:48 -0800
committerKaz Kylheku <kaz@kylheku.com>2020-01-26 10:39:48 -0800
commite4ef3f03d9f01f92482fa9ac7ec18f54a6847c65 (patch)
tree0ad2e5925b02ca48c810d8cd3bae9e31fa777e16
parentbbf9c8046cf93f8307c6856acc9d23f86a746547 (diff)
downloadc-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/autotab.c b/autotab.c
index 735a1ca..6ddc384 100644
--- a/autotab.c
+++ b/autotab.c
@@ -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) {