diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2015-02-10 21:56:11 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2015-02-10 21:56:11 +0000 |
commit | fb06ed88b5810f53d16a2f3f90904ed7ea4de07a (patch) | |
tree | 0ad268ca945306e22e87692f6bb02fcd1220d0e4 /sys/dev/hotplug.c | |
parent | 4ed4205fc6bdb404dcf67f9f19347eea957f5982 (diff) |
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@
Diffstat (limited to 'sys/dev/hotplug.c')
-rw-r--r-- | sys/dev/hotplug.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <grange@openbsd.org> * @@ -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); |