pwrite() return value will fit 'int' most of the time, but we should use
the correct type for consistency.
Signed-off-by: David Sterba <dsterba@suse.com>
struct btrfs_receive *rctx = user;
char full_path[PATH_MAX];
u64 pos = 0;
- int w;
ret = path_cat_out(full_path, rctx->full_subvol_path, path);
if (ret < 0) {
path, offset, len);
while (pos < len) {
+ ssize_t w;
+
w = pwrite(rctx->write_fd, (char*)data + pos, len - pos,
offset + pos);
if (w == 0) {