fix compiler warnings(errors)
This commit is contained in:
@@ -473,7 +473,7 @@ ttynvt_read(fuse_req_t req, size_t size, off_t off,
|
|||||||
struct fuse_file_info *info)
|
struct fuse_file_info *info)
|
||||||
{
|
{
|
||||||
ttynvt_t *tty = (ttynvt_t *) (uintptr_t) info->fh;
|
ttynvt_t *tty = (ttynvt_t *) (uintptr_t) info->fh;
|
||||||
ssize_t res;
|
int res;
|
||||||
|
|
||||||
if (tty->error)
|
if (tty->error)
|
||||||
{
|
{
|
||||||
@@ -503,7 +503,7 @@ ttynvt_read(fuse_req_t req, size_t size, off_t off,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
DBG2("read (slave): size:%ld, thread:%lu\n", res, pthread_self());
|
DBG2("read (slave): size:%d, thread:%lu\n", res, pthread_self());
|
||||||
|
|
||||||
fuse_reply_buf(req, tty->tmp_buf, res);
|
fuse_reply_buf(req, tty->tmp_buf, res);
|
||||||
}
|
}
|
||||||
@@ -537,7 +537,7 @@ ttynvt_write(fuse_req_t req, const char *data, size_t size, off_t off,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
DBG2("write (slave): size:%ld, thread:%lu\n", size, pthread_self());
|
DBG2("write (slave): size:%d, thread:%lu\n", (int)size, pthread_self());
|
||||||
|
|
||||||
fuse_reply_write(req, res);
|
fuse_reply_write(req, res);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user