From fb06ed88b5810f53d16a2f3f90904ed7ea4de07a Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Tue, 10 Feb 2015 21:56:11 +0000 Subject: First step towards making uiomove() take a size_t size argument: - rename uiomove() to uiomovei() and update all its users. - introduce uiomove(), which is similar to uiomovei() but with a size_t. - rewrite uiomovei() as an uiomove() wrapper. ok kettenis@ --- sys/dev/hotplug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/hotplug.c') diff --git a/sys/dev/hotplug.c b/sys/dev/hotplug.c index 2936751b04b..ccbb0dcfd7e 100644 --- a/sys/dev/hotplug.c +++ b/sys/dev/hotplug.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hotplug.c,v 1.12 2011/07/02 22:20:07 nicm Exp $ */ +/* $OpenBSD: hotplug.c,v 1.13 2015/02/10 21:56:09 miod Exp $ */ /* * Copyright (c) 2004 Alexander Yurchenko * @@ -151,7 +151,7 @@ hotplugread(dev_t dev, struct uio *uio, int flags) again: if (hotplug_get_event(&he) == 0) - return (uiomove(&he, sizeof(he), uio)); + return (uiomovei(&he, sizeof(he), uio)); if (flags & IO_NDELAY) return (EAGAIN); -- cgit v1.2.3