summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason <jason@openbsd.org>2003-08-14 15:18:05 +0000
committerjason <jason@openbsd.org>2003-08-14 15:18:05 +0000
commit9941f4a628bd19475a63f0550ab33261efb01b9f (patch)
treeb96f6b4cb1ad2e34b7c216a296945e474bf4a8f6
parentadd uhci based on suggestion from loki at niteshade dot net (diff)
downloadwireguard-openbsd-9941f4a628bd19475a63f0550ab33261efb01b9f.tar.xz
wireguard-openbsd-9941f4a628bd19475a63f0550ab33261efb01b9f.zip
mirror change in mbufs: cuio_copyback's 4th arg is now const void *
-rw-r--r--sys/crypto/criov.c12
-rw-r--r--sys/crypto/cryptodev.h4
2 files changed, 5 insertions, 11 deletions
diff --git a/sys/crypto/criov.c b/sys/crypto/criov.c
index fe9866fa61e..8d183d94000 100644
--- a/sys/crypto/criov.c
+++ b/sys/crypto/criov.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: criov.c,v 1.13 2003/07/31 20:35:10 markus Exp $ */
+/* $OpenBSD: criov.c,v 1.14 2003/08/14 15:18:05 jason Exp $ */
/*
* Copyright (c) 1999 Theo de Raadt
@@ -38,10 +38,7 @@
#include <crypto/cryptodev.h>
void
-cuio_copydata(uio, off, len, cp)
- struct uio *uio;
- int off, len;
- caddr_t cp;
+cuio_copydata(struct uio *uio, int off, int len, caddr_t cp)
{
struct iovec *iov = uio->uio_iov;
int iol = uio->uio_iovcnt;
@@ -74,10 +71,7 @@ cuio_copydata(uio, off, len, cp)
}
void
-cuio_copyback(uio, off, len, cp)
- struct uio *uio;
- int off, len;
- caddr_t cp;
+cuio_copyback(struct uio *uio, int off, int len, const void *cp)
{
struct iovec *iov = uio->uio_iov;
int iol = uio->uio_iovcnt;
diff --git a/sys/crypto/cryptodev.h b/sys/crypto/cryptodev.h
index b4bac3a7e58..eac54325840 100644
--- a/sys/crypto/cryptodev.h
+++ b/sys/crypto/cryptodev.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cryptodev.h,v 1.41 2003/07/24 15:29:38 markus Exp $ */
+/* $OpenBSD: cryptodev.h,v 1.42 2003/08/14 15:18:05 jason Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu)
@@ -314,7 +314,7 @@ void crypto_kdone(struct cryptkop *);
int crypto_getfeat(int *);
void cuio_copydata(struct uio *, int, int, caddr_t);
-void cuio_copyback(struct uio *, int, int, caddr_t);
+void cuio_copyback(struct uio *, int, int, const void *);
int cuio_getptr(struct uio *, int, int *);
int cuio_apply(struct uio *, int, int,
int (*f)(caddr_t, caddr_t, unsigned int), caddr_t);