aboutsummaryrefslogtreecommitdiff
path: root/vcs-svn/line_buffer.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-02-07 12:56:38 -0800
committerJunio C Hamano <gitster@pobox.com>2012-02-07 12:56:38 -0800
commit12b681c3d2306fefa949c2e04d36e4f888917507 (patch)
tree8c5f9824b4cd9c9cd0166b4f0ce7662112a2a656 /vcs-svn/line_buffer.c
parent53828bb0654da620ed24bf50c721b6909f487daa (diff)
parent3f790003a356284d92beff6965985917e58b6707 (diff)
downloadgit-12b681c3d2306fefa949c2e04d36e4f888917507.tar.gz
git-12b681c3d2306fefa949c2e04d36e4f888917507.tar.xz
Merge branch 'jn/svn-fe'
* jn/svn-fe: (36 commits) vcs-svn: suppress a -Wtype-limits warning vcs-svn: allow import of > 4GiB files vcs-svn: rename check_overflow arguments for clarity vcs-svn/svndiff.c: squelch false "unused" warning from gcc vcs-svn: reset first_commit_done in fast_export_init vcs-svn: do not initialize report_buffer twice vcs-svn: avoid hangs from corrupt deltas vcs-svn: guard against overflow when computing preimage length vcs-svn: cap number of bytes read from sliding view test-svn-fe: split off "test-svn-fe -d" into a separate function vcs-svn: implement text-delta handling vcs-svn: let deltas use data from preimage vcs-svn: let deltas use data from postimage vcs-svn: verify that deltas consume all inline data vcs-svn: implement copyfrom_data delta instruction vcs-svn: read instructions from deltas vcs-svn: read inline data from deltas vcs-svn: read the preimage when applying deltas vcs-svn: parse svndiff0 window header vcs-svn: skeleton of an svn delta parser ...
Diffstat (limited to 'vcs-svn/line_buffer.c')
-rw-r--r--vcs-svn/line_buffer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcs-svn/line_buffer.c b/vcs-svn/line_buffer.c
index c39038723..01fcb842f 100644
--- a/vcs-svn/line_buffer.c
+++ b/vcs-svn/line_buffer.c
@@ -91,10 +91,10 @@ char *buffer_read_line(struct line_buffer *buf)
return buf->line_buffer;
}
-void buffer_read_binary(struct line_buffer *buf,
- struct strbuf *sb, uint32_t size)
+size_t buffer_read_binary(struct line_buffer *buf,
+ struct strbuf *sb, size_t size)
{
- strbuf_fread(sb, size, buf->infile);
+ return strbuf_fread(sb, size, buf->infile);
}
off_t buffer_copy_bytes(struct line_buffer *buf, off_t nbytes)