diff options
author | 2000-01-06 07:23:24 +0000 | |
---|---|---|
committer | 2000-01-06 07:23:24 +0000 | |
commit | 833aaef65bddd61b28e497f3ebbd0b766d8229a2 (patch) | |
tree | 30cc25a1e8d09b40a95ee334eebf4d214c9cf9c0 /lib | |
parent | copyright, includes, cast (diff) | |
download | wireguard-openbsd-833aaef65bddd61b28e497f3ebbd0b766d8229a2.tar.xz wireguard-openbsd-833aaef65bddd61b28e497f3ebbd0b766d8229a2.zip |
quieten gcc
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc_r/uthread/uthread_write.c | 5 | ||||
-rw-r--r-- | lib/libpthread/uthread/uthread_write.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/libc_r/uthread/uthread_write.c b/lib/libc_r/uthread/uthread_write.c index cac06ef3bb5..42a1f193243 100644 --- a/lib/libc_r/uthread/uthread_write.c +++ b/lib/libc_r/uthread/uthread_write.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_write.c,v 1.5 1999/11/25 07:01:47 d Exp $ */ +/* $OpenBSD: uthread_write.c,v 1.6 2000/01/06 07:23:24 d Exp $ */ /* * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au> * All rights reserved. @@ -77,7 +77,8 @@ write(int fd, const void *buf, size_t nbytes) */ while (ret == 0) { /* Perform a non-blocking write syscall: */ - n = _thread_sys_write(fd, buf + num, nbytes - num); + n = _thread_sys_write(fd, (caddr_t)buf + num, + nbytes - num); /* Check if one or more bytes were written: */ if (n > 0) diff --git a/lib/libpthread/uthread/uthread_write.c b/lib/libpthread/uthread/uthread_write.c index cac06ef3bb5..42a1f193243 100644 --- a/lib/libpthread/uthread/uthread_write.c +++ b/lib/libpthread/uthread/uthread_write.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_write.c,v 1.5 1999/11/25 07:01:47 d Exp $ */ +/* $OpenBSD: uthread_write.c,v 1.6 2000/01/06 07:23:24 d Exp $ */ /* * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au> * All rights reserved. @@ -77,7 +77,8 @@ write(int fd, const void *buf, size_t nbytes) */ while (ret == 0) { /* Perform a non-blocking write syscall: */ - n = _thread_sys_write(fd, buf + num, nbytes - num); + n = _thread_sys_write(fd, (caddr_t)buf + num, + nbytes - num); /* Check if one or more bytes were written: */ if (n > 0) |