Module Name: src Committed By: riastradh Date: Tue Apr 21 13:15:28 UTC 2015
Modified Files: src/external/cddl/osnet/sys/sys: uio.h Log Message: Remove bogus size_t->int casts in uiomove. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/external/cddl/osnet/sys/sys/uio.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/cddl/osnet/sys/sys/uio.h diff -u src/external/cddl/osnet/sys/sys/uio.h:1.7 src/external/cddl/osnet/sys/sys/uio.h:1.8 --- src/external/cddl/osnet/sys/sys/uio.h:1.7 Sat Apr 11 01:49:00 2015 +++ src/external/cddl/osnet/sys/sys/uio.h Tue Apr 21 13:15:28 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: uio.h,v 1.7 2015/04/11 01:49:00 riastradh Exp $ */ +/* $NetBSD: uio.h,v 1.8 2015/04/21 13:15:28 riastradh Exp $ */ /*- * Copyright (c) 2009 The NetBSD Foundation, Inc. @@ -105,7 +105,7 @@ zfs_uiomove(void *cp, size_t n, enum uio { assert(uio->uio_rw == dir); - return (uiomove(cp, (int)n, uio)); + return (uiomove(cp, n, uio)); } static __inline int @@ -116,7 +116,7 @@ zfs_uiocopy(void *cp, size_t n, enum uio memcpy(&uio2, uio, sizeof(*uio)); assert(uio->uio_rw == dir); - if ((err = uiomove(cp, (int)n, &uio2)) != 0) + if ((err = uiomove(cp, n, &uio2)) != 0) return err; *cbytes = uio->uio_resid - uio2.uio_resid;