Show More
@@ -15,12 +15,13 b'' | |||||
15 | #include <string.h> |
|
15 | #include <string.h> | |
16 | #include <limits.h> |
|
16 | #include <limits.h> | |
17 |
|
17 | |||
|
18 | #include "compat.h" | |||
18 | #include "util.h" |
|
19 | #include "util.h" | |
19 | #include "bitmanipulation.h" |
|
20 | #include "bitmanipulation.h" | |
20 |
|
21 | |||
21 | struct line { |
|
22 | struct line { | |
22 | int hash, n, e; |
|
23 | int hash, n, e; | |
23 |
|
|
24 | ssize_t len; | |
24 | const char *l; |
|
25 | const char *l; | |
25 | }; |
|
26 | }; | |
26 |
|
27 | |||
@@ -34,7 +35,7 b' struct hunk {' | |||||
34 | struct hunk *next; |
|
35 | struct hunk *next; | |
35 | }; |
|
36 | }; | |
36 |
|
37 | |||
37 |
static int splitlines(const char *a, |
|
38 | static int splitlines(const char *a, ssize_t len, struct line **lr) | |
38 | { |
|
39 | { | |
39 | unsigned hash; |
|
40 | unsigned hash; | |
40 | int i; |
|
41 | int i; |
General Comments 0
You need to be logged in to leave comments.
Login now