# [PATCH] diff: mark a file-local symbol static

1 messages from 2016-08-24 to 2016-08-24. Participants: Ramsay Jones.
Thread: https://gitlist.dev/t/43924

## Ramsay Jones, 2016-08-24 15:27

Subject: [PATCH] diff: mark a file-local symbol static
Message-ID: <a27aa17e-f602-fc49-92b3-2198e4772e47@ramsayjones.plus.com>
URL: https://gitlist.dev/e/a27aa17e-f602-fc49-92b3-2198e4772e47%40ramsayjones.plus.com

```

Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
---

Hi Michael,

If you need to re-roll your 'mh/diff-indent-heuristic' branch, could
you please squash this into the relevant patch (commit 8f5cc189,
"diff: improve positioning of add/delete blocks in diffs", 22-08-2016).

Thanks!

ATB,
Ramsay Jones

 xdiff/xdiffi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xdiff/xdiffi.c b/xdiff/xdiffi.c
index dc79628..67c1ccc 100644
--- a/xdiff/xdiffi.c
+++ b/xdiff/xdiffi.c
@@ -684,7 +684,7 @@ static void score_add_split(const struct split_measurement *m, struct split_scor
 	}
 }
 
-int score_cmp(struct split_score *s1, struct split_score *s2)
+static int score_cmp(struct split_score *s1, struct split_score *s2)
 {
 	/* -1 if s1.effective_indent < s2->effective_indent, etc. */
 	int cmp_indents = ((s1->effective_indent > s2->effective_indent) -
-- 
2.9.0

```
