Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

blocksize should be 32bit

  • Loading branch information...
commit 0ac4eb0bf529e1b9559daf728534240a52a7b0ac 1 parent 2f298ad
Kazuho Oku authored
Showing with 4 additions and 2 deletions.
  1. +2 −1  blockdiff_dump.c
  2. +2 −1  blockdiff_merge.c
View
3  blockdiff_dump.c
@@ -20,7 +20,8 @@ int main(int argc, char** argv)
unsigned char* block;
unsigned char digest[MD5_DIGEST_LENGTH], orig_digest[MD5_DIGEST_LENGTH];
char* blocksize_s;
- size_t blocksize = DEFAULT_BLOCKSIZE, rlen;
+ int blocksize = DEFAULT_BLOCKSIZE;
+ size_t rlen;
long long offset;
if ((blocksize_s = getenv(BLOCKSIZE_ENV)) != NULL) {
View
3  blockdiff_merge.c
@@ -10,7 +10,8 @@ int main(int argc, char **argv)
{
int fd;
unsigned char* block;
- size_t blocksize, rlen;
+ int blocksize;
+ size_t rlen;
long long offset;
if (argc != 2) {
Please sign in to comment.
Something went wrong with that request. Please try again.