summaryrefslogtreecommitdiffstats
path: root/sys/compat/svr4/svr4_misc.c
diff options
context:
space:
mode:
authornewton <newton@FreeBSD.org>1999-07-30 12:45:21 +0000
committernewton <newton@FreeBSD.org>1999-07-30 12:45:21 +0000
commit8cf6f8ca29b9ea93f0dcd250b94cfa0011b9c8a2 (patch)
treeed382a62a3cdf802db21a9d610268941823566de /sys/compat/svr4/svr4_misc.c
parent6f0fb2923fc8d262d8c8ea9b5cbdd3a20f858cc2 (diff)
downloadFreeBSD-src-8cf6f8ca29b9ea93f0dcd250b94cfa0011b9c8a2.zip
FreeBSD-src-8cf6f8ca29b9ea93f0dcd250b94cfa0011b9c8a2.tar.gz
Add $Id$ tags
Diffstat (limited to 'sys/compat/svr4/svr4_misc.c')
-rw-r--r--sys/compat/svr4/svr4_misc.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/compat/svr4/svr4_misc.c b/sys/compat/svr4/svr4_misc.c
index 262fd06..740dd1f 100644
--- a/sys/compat/svr4/svr4_misc.c
+++ b/sys/compat/svr4/svr4_misc.c
@@ -24,6 +24,8 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * $Id$
*/
/*
@@ -297,7 +299,7 @@ again:
goto out;
inp = buf;
- outp = SCARG(uap, dp);
+ outp = (caddr_t)SCARG(uap, dp);
resid = SCARG(uap, nbytes);
if ((len = buflen - auio.uio_resid) == 0)
goto eof;
@@ -357,7 +359,7 @@ again:
DPRINTF(("block finished\n"));
/* if we squished out the whole block, try again */
fp->f_offset = off; /* update the vnode offset */
- if (outp == SCARG(uap, dp))
+ if (outp == (caddr_t)SCARG(uap, dp))
goto again;
eof:
@@ -616,7 +618,7 @@ svr4_sys_mknod(p, uap)
int *retval = p->p_retval;
return svr4_mknod(p, retval,
SCARG(uap, path), SCARG(uap, mode),
- svr4_to_bsd_odev_t(SCARG(uap, dev)));
+ (svr4_dev_t)svr4_to_bsd_odev_t(SCARG(uap, dev)));
}
@@ -628,7 +630,7 @@ svr4_sys_xmknod(p, uap)
int *retval = p->p_retval;
return svr4_mknod(p, retval,
SCARG(uap, path), SCARG(uap, mode),
- svr4_to_bsd_dev_t(SCARG(uap, dev)));
+ (svr4_dev_t)svr4_to_bsd_dev_t(SCARG(uap, dev)));
}
OpenPOWER on IntegriCloud