X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/4440b8aa3fb0edb9626c8eaa4856d72f78c9e176..fcb69e5cdcfdfd0bdcea2127e5f4c9133a2282b9:/fileio.c diff --git a/fileio.c b/fileio.c index c39d6b02..92631bc7 100644 --- a/fileio.c +++ b/fileio.c @@ -1,5 +1,6 @@ /* Copyright (C) Andrew Tridgell 1998 + Copyright (C) 2002 by Martin Pool This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -36,9 +37,9 @@ int sparse_end(int f) } -static int write_sparse(int f,char *buf,int len) +static int write_sparse(int f,char *buf,size_t len) { - int l1=0,l2=0; + size_t l1=0, l2=0; int ret; for (l1=0;l1 0) do_lseek(f,l2,SEEK_CUR); @@ -69,7 +71,7 @@ static int write_sparse(int f,char *buf,int len) -int write_file(int f,char *buf,int len) +int write_file(int f,char *buf,size_t len) { int ret = 0;