summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstefan <stefan@openbsd.org>2016-01-11 17:29:43 +0000
committerstefan <stefan@openbsd.org>2016-01-11 17:29:43 +0000
commit5d7233800e8cadcf91c3c945bde864bc6a970a78 (patch)
treeaa83a162b0be354ba966578c68578da1212f363b
parentxs_cmd should always return errno(2) codes (diff)
downloadwireguard-openbsd-5d7233800e8cadcf91c3c945bde864bc6a970a78.tar.xz
wireguard-openbsd-5d7233800e8cadcf91c3c945bde864bc6a970a78.zip
Use uiomove() instead of uiomovei(); from Martin Natano
ok kettenis@
-rw-r--r--sys/dev/ksyms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ksyms.c b/sys/dev/ksyms.c
index ee519f1a00a..4c15218ce02 100644
--- a/sys/dev/ksyms.c
+++ b/sys/dev/ksyms.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ksyms.c,v 1.30 2015/08/29 01:58:39 guenther Exp $ */
+/* $OpenBSD: ksyms.c,v 1.31 2016/01/11 17:29:43 stefan Exp $ */
/*
* Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
* Copyright (c) 2001 Artur Grabowski <art@openbsd.org>
@@ -164,7 +164,7 @@ ksymsread(dev_t dev, struct uio *uio, int flags)
if (len > uio->uio_resid)
len = uio->uio_resid;
- if ((error = uiomovei(v, len, uio)) != 0)
+ if ((error = uiomove(v, len, uio)) != 0)
return (error);
}