diff options
author | Junio C Hamano <junkio@cox.net> | 2006-05-05 02:35:58 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-05 02:50:11 -0700 |
commit | ac4c758adcf52b913b82d481626b0f8648e95475 (patch) | |
tree | dd5ea5058d21f9eae318bfdd19786df07e3e3468 /diff-delta.c | |
parent | fb335158d5a93349e16bc0985e75e93bb9fcd5eb (diff) | |
download | git-ac4c758adcf52b913b82d481626b0f8648e95475.tar.gz |
delta: stricter constness
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'diff-delta.c')
-rw-r--r-- | diff-delta.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/diff-delta.c b/diff-delta.c index 1188b31cd0..5bc22047f8 100644 --- a/diff-delta.c +++ b/diff-delta.c @@ -131,8 +131,8 @@ static struct index ** delta_index(const unsigned char *buf, /* the maximum size for any opcode */ #define MAX_OP_SIZE COPYOP_SIZE(0xffffffff, 0xffffffff) -void *diff_delta(void *from_buf, unsigned long from_size, - void *to_buf, unsigned long to_size, +void *diff_delta(const void *from_buf, unsigned long from_size, + const void *to_buf, unsigned long to_size, unsigned long *delta_size, unsigned long max_size) { |