summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkstailey <kstailey@openbsd.org>1997-08-29 19:14:53 +0000
committerkstailey <kstailey@openbsd.org>1997-08-29 19:14:53 +0000
commit88f3fe24a41708b8016d40644575a942a8706283 (patch)
tree52fad9df9b879d537e450a3c3db87393a001c454
parentpatch to avoid warning while I figure out what the deal with SCARG() is. (diff)
downloadwireguard-openbsd-88f3fe24a41708b8016d40644575a942a8706283.tar.xz
wireguard-openbsd-88f3fe24a41708b8016d40644575a942a8706283.zip
write(2)'s buf arg is externally a "const void *", but interally a "char *".
Cast around it until it gets fixed.
-rw-r--r--sys/compat/svr4/svr4_fcntl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/compat/svr4/svr4_fcntl.c b/sys/compat/svr4/svr4_fcntl.c
index 630326307bd..35816d7b5ae 100644
--- a/sys/compat/svr4/svr4_fcntl.c
+++ b/sys/compat/svr4/svr4_fcntl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: svr4_fcntl.c,v 1.9 1997/08/29 18:55:56 kstailey Exp $ */
+/* $OpenBSD: svr4_fcntl.c,v 1.10 1997/08/29 19:14:53 kstailey Exp $ */
/* $NetBSD: svr4_fcntl.c,v 1.14 1995/10/14 20:24:24 christos Exp $ */
/*
@@ -354,7 +354,8 @@ svr4_sys_pwrite(p, v, retval)
return error;
SCARG(&wap, fd) = SCARG(uap, fd);
- SCARG(&wap, buf) = (void *)SCARG(uap, buf);
+ SCARG(&wap, buf) = (char *)SCARG(uap, buf); /* XXX until sys_write_args
+ is fixed */
SCARG(&wap, nbyte) = SCARG(uap, nbyte);
return sys_write(p, &wap, retval);