diff options
author | Elliott Hughes <enh@google.com> | 2015-03-23 22:53:13 +0100 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-03-23 22:53:13 +0100 |
commit | 31e4787634a59d32ff80ccd684bc439cecc4d8c8 (patch) | |
tree | ad1df5da827f51d31d05ce5d80d44e7488e25dc4 /fuse_sideload.c | |
parent | Merge "Add "Apply update from sdcard" to default recovery image." (diff) | |
parent | Always use strerror to report errno in recovery. (diff) | |
download | android_bootable_recovery-31e4787634a59d32ff80ccd684bc439cecc4d8c8.tar android_bootable_recovery-31e4787634a59d32ff80ccd684bc439cecc4d8c8.tar.gz android_bootable_recovery-31e4787634a59d32ff80ccd684bc439cecc4d8c8.tar.bz2 android_bootable_recovery-31e4787634a59d32ff80ccd684bc439cecc4d8c8.tar.lz android_bootable_recovery-31e4787634a59d32ff80ccd684bc439cecc4d8c8.tar.xz android_bootable_recovery-31e4787634a59d32ff80ccd684bc439cecc4d8c8.tar.zst android_bootable_recovery-31e4787634a59d32ff80ccd684bc439cecc4d8c8.zip |
Diffstat (limited to 'fuse_sideload.c')
-rw-r--r-- | fuse_sideload.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fuse_sideload.c b/fuse_sideload.c index 4e11e01e4..1dd84e97a 100644 --- a/fuse_sideload.c +++ b/fuse_sideload.c @@ -106,12 +106,12 @@ static void fuse_reply(struct fuse_data* fd, __u64 unique, const void *data, siz vec[0].iov_base = &hdr; vec[0].iov_len = sizeof(hdr); - vec[1].iov_base = data; + vec[1].iov_base = /* const_cast */(void*)(data); vec[1].iov_len = len; res = writev(fd->ffd, vec, 2); if (res < 0) { - printf("*** REPLY FAILED *** %d\n", errno); + printf("*** REPLY FAILED *** %s\n", strerror(errno)); } } @@ -430,7 +430,7 @@ int run_fuse_sideload(struct provider_vtab* vtab, void* cookie, char opts[256]; snprintf(opts, sizeof(opts), - ("fd=%d,user_id=%d,group_id=%d,max_read=%zu," + ("fd=%d,user_id=%d,group_id=%d,max_read=%u," "allow_other,rootmode=040000"), fd.ffd, fd.uid, fd.gid, block_size); |