diff options
author | David Sterba <dsterba@suse.com> | 2016-11-15 14:19:30 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-11-23 10:49:49 +0100 |
commit | 194666a67290a0b15224598826f487d2ce4d37b0 (patch) | |
tree | b0a7d433c6e7a8bf2205df415975269f04d4b691 /send-stream.c | |
parent | 7b794974ba321b137d1e1a05594c0e4100b2f8a8 (diff) |
btrfs-progs: send-stream: fix size types passed to read_buf
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'send-stream.c')
-rw-r--r-- | send-stream.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/send-stream.c b/send-stream.c index 5d36530d..7b64dc22 100644 --- a/send-stream.c +++ b/send-stream.c @@ -37,10 +37,10 @@ struct btrfs_send_stream { void *user; }; -static int read_buf(struct btrfs_send_stream *sctx, void *buf, int len) +static int read_buf(struct btrfs_send_stream *sctx, void *buf, size_t len) { int ret; - int pos = 0; + size_t pos = 0; while (pos < len) { ret = read(sctx->fd, (char*)buf + pos, len - pos); |