diff options
author | Matthew Endsley <mendsley@gmail.com> | 2012-05-13 22:58:55 -0700 |
---|---|---|
committer | Matthew Endsley <mendsley@gmail.com> | 2012-05-14 01:04:25 -0700 |
commit | 025c1b0195d4b63503385d0ef7a0c9118a96c922 (patch) | |
tree | c35c057f218bbcef3b2a7b4a991b5a4bf4e59d9b | |
parent | a9afc8b8afb7df94b68b2a825268d3197eb0dd82 (diff) | |
download | bsdiff-025c1b0195d4b63503385d0ef7a0c9118a96c922.tar.gz |
renaming writecompressed to writedata
-rw-r--r-- | bsdiff.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -212,7 +212,7 @@ static void offtout(int64_t x,uint8_t *buf) if(x<0) buf[7]|=0x80; } -static int64_t writecompressed(struct bsdiff_stream* stream, const void* buffer, int64_t length) +static int64_t writedata(struct bsdiff_stream* stream, const void* buffer, int64_t length) { int64_t result = 0; @@ -351,7 +351,7 @@ static int bsdiff_internal(const struct bsdiff_request req) offtout((scan-lenb)-(lastscan+lenf),buf+8); offtout((pos-lenb)-(lastpos+lenf),buf+16); - compresslen = writecompressed(req.stream, buf, sizeof(buf)); + compresslen = writedata(req.stream, buf, sizeof(buf)); if (compresslen == -1) return -1; filelen += compresslen; @@ -371,7 +371,7 @@ static int bsdiff_internal(const struct bsdiff_request req) /* Write compressed diff data */ filelen = 0; - compresslen = writecompressed(req.stream, db, dblen); + compresslen = writedata(req.stream, db, dblen); if (compresslen == -1) return -1; filelen += compresslen; @@ -384,7 +384,7 @@ static int bsdiff_internal(const struct bsdiff_request req) req.header->diff_block_length = filelen; /* Write compressed extra data */ - compresslen = writecompressed(req.stream, eb, eblen); + compresslen = writedata(req.stream, eb, eblen); if (compresslen == -1) return -1; compresslen = req.stream->finish(req.stream); |