diff options
author | David Leonard <d@cvs.openbsd.org> | 2000-01-06 07:23:25 +0000 |
---|---|---|
committer | David Leonard <d@cvs.openbsd.org> | 2000-01-06 07:23:25 +0000 |
commit | aa15e0fdc87c0d8c0b06d252425b1e5125f31209 (patch) | |
tree | 46169b435881f2bcfe9db217b201a4469d931184 /lib/libc_r/uthread | |
parent | 94e40e40fd799f40924d0c43709d8dc8b2222b47 (diff) |
quieten gcc
Diffstat (limited to 'lib/libc_r/uthread')
-rw-r--r-- | lib/libc_r/uthread/uthread_write.c | 5 |
1 files changed, 3 insertions, 2 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) |