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 avoid compiler warnings
details: https://anonhg.NetBSD.org/src/rev/c75da4506fbb
branches: trunk
changeset: 340722:c75da4506fbb
user: christos <christos%NetBSD.org@localhost>
date: Sat Sep 26 03:32:17 2015 +0000
description:
avoid compiler warnings
diffstat:
external/cddl/osnet/sys/sys/uio.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (32 lines):
diff -r 74552c41f8de -r c75da4506fbb external/cddl/osnet/sys/sys/uio.h
--- a/external/cddl/osnet/sys/sys/uio.h Sat Sep 26 03:31:52 2015 +0000
+++ b/external/cddl/osnet/sys/sys/uio.h Sat Sep 26 03:32:17 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uio.h,v 1.8 2015/04/21 13:15:28 riastradh Exp $ */
+/* $NetBSD: uio.h,v 1.9 2015/09/26 03:32:17 christos Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -127,18 +127,18 @@
static __inline void
zfs_uioskip(uio_t *uiop, size_t n)
{
- if (n > uiop->uio_resid)
+ if (n > (size_t)uiop->uio_resid)
return;
while (n != 0) {
- register iovec_t *iovp = uiop->uio_iov;
- register size_t niovb = MIN(iovp->iov_len, n);
+ iovec_t *iovp = uiop->uio_iov;
+ size_t niovb = MIN(iovp->iov_len, n);
if (niovb == 0) {
uiop->uio_iov++;
uiop->uio_iovcnt--;
continue;
}
- iovp->iov_base += niovb;
+ iovp->iov_base = (char *)iovp->iov_base + niovb;
uiop->uio_offset += niovb;
iovp->iov_len -= niovb;
uiop->uio_resid -= niovb;
Home |
Main Index |
Thread Index |
Old Index