Avoid some cast-qual warnings
This commit is contained in:
+5
-5
@@ -952,7 +952,7 @@ ttynvt_ioctl(fuse_req_t req, int cmd, void *arg,
|
||||
break;
|
||||
case TIOCMBIS:
|
||||
CHECK_BUF_IN(sizeof(int));
|
||||
tiocm = *(unsigned int *)in_buf;
|
||||
tiocm = *(const unsigned int *)in_buf;
|
||||
fuse_reply_ioctl(req, 0, 0, 0);
|
||||
DBG("%s: cmd=%s tiocm=%#x\n", __func__, _ioctl_name(cmd), tiocm);
|
||||
if (tiocm & TIOCM_RTS)
|
||||
@@ -968,7 +968,7 @@ ttynvt_ioctl(fuse_req_t req, int cmd, void *arg,
|
||||
goto show_mctl;
|
||||
case TIOCMBIC:
|
||||
CHECK_BUF_IN(sizeof(int));
|
||||
tiocm = *(unsigned int *)in_buf;
|
||||
tiocm = *(const unsigned int *)in_buf;
|
||||
fuse_reply_ioctl(req, 0, 0, 0);
|
||||
DBG("%s: cmd=%s tiocm=%#x\n", __func__, _ioctl_name(cmd), tiocm);
|
||||
if (tiocm & TIOCM_RTS)
|
||||
@@ -984,7 +984,7 @@ ttynvt_ioctl(fuse_req_t req, int cmd, void *arg,
|
||||
goto show_mctl;
|
||||
case TIOCMSET:
|
||||
CHECK_BUF_IN(sizeof(int));
|
||||
tiocm = *(unsigned int *)in_buf;
|
||||
tiocm = *(const unsigned int *)in_buf;
|
||||
fuse_reply_ioctl(req, 0, 0, 0);
|
||||
DBG("%s: cmd=%s tiocm=%#x\n", __func__, _ioctl_name(cmd), tiocm);
|
||||
tty->cmcr &= ~(TIOCM_RTS | TIOCM_DTR);
|
||||
@@ -1014,7 +1014,7 @@ ttynvt_ioctl(fuse_req_t req, int cmd, void *arg,
|
||||
break;
|
||||
case TIOCSWINSZ:
|
||||
CHECK_BUF_IN(sizeof(struct winsize));
|
||||
ws = *(struct winsize *)in_buf;
|
||||
ws = *(const struct winsize *)in_buf;
|
||||
res = ioctl(tty->fds[FD_SLAVE].fd, TIOCSWINSZ, &ws);
|
||||
if (res < 0)
|
||||
{
|
||||
@@ -1038,7 +1038,7 @@ ttynvt_ioctl(fuse_req_t req, int cmd, void *arg,
|
||||
break;
|
||||
case TIOCSETD:
|
||||
CHECK_BUF_IN(sizeof(int));
|
||||
val = *(int *)in_buf;
|
||||
val = *(const int *)in_buf;
|
||||
res = ioctl(tty->fds[FD_SLAVE].fd, TIOCSETD, &val);
|
||||
if (res < 0)
|
||||
fuse_reply_err(req, errno);
|
||||
|
||||
Reference in New Issue
Block a user