Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/sys/sys Remove bogus size_t->int casts i...
details: https://anonhg.NetBSD.org/src/rev/18b0480c7290
branches: trunk
changeset: 337625:18b0480c7290
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Apr 21 13:15:28 2015 +0000
description:
Remove bogus size_t->int casts in uiomove.
diffstat:
external/cddl/osnet/sys/sys/uio.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 2edfbf36a9a4 -r 18b0480c7290 external/cddl/osnet/sys/sys/uio.h
--- a/external/cddl/osnet/sys/sys/uio.h Tue Apr 21 12:55:57 2015 +0000
+++ b/external/cddl/osnet/sys/sys/uio.h Tue Apr 21 13:15:28 2015 +0000
@@ -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 @@
{
assert(uio->uio_rw == dir);
- return (uiomove(cp, (int)n, uio));
+ return (uiomove(cp, n, uio));
}
static __inline int
@@ -116,7 +116,7 @@
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;
Home |
Main Index |
Thread Index |
Old Index