X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/blobdiff_plain/88bf1145bc9f8cad86e319cd78f2ed4afb7189ad..e54488bbec5c9f80e95cedd395b0e3d31fde253d:/sys/dev/raid/dpt/dpt_control.c diff --git a/sys/dev/raid/dpt/dpt_control.c b/sys/dev/raid/dpt/dpt_control.c index 974300f6a9..8152ca9e9c 100644 --- a/sys/dev/raid/dpt/dpt_control.c +++ b/sys/dev/raid/dpt/dpt_control.c @@ -486,8 +486,8 @@ dpt_write(cdev_t dev, struct uio * uio, int ioflag) } else if (uio->uio_resid > DPT_RW_CMD_LEN) { return (E2BIG); } else { - char *cp; - int length; + char *cp; + size_t length; cp = dpt_inbuf[minor_no]->b_data; length = uio->uio_resid; /* uiomove will change it! */ @@ -644,7 +644,7 @@ dpt_read(cdev_t dev, struct uio * uio, int ioflag) if (error == 0) { work_buffer[work_size++] = '\0'; - error = uiomove(work_buffer, work_size, uio); + error = uiomove(work_buffer, (size_t)work_size, uio); uio->uio_resid = 0; #ifdef DPT_DEBUG_CONTROL if (error) {