Supply prototypes for some functions that were implicitly declared and

fix the resulting warnings.
This commit is contained in:
bde 1994-09-15 19:47:47 +00:00
parent fc75376fae
commit 91d2f60f72
4 changed files with 11 additions and 7 deletions

View File

@ -37,7 +37,7 @@
*
* @(#)procfs_mem.c 8.4 (Berkeley) 1/21/94
*
* $Id: procfs_mem.c,v 1.1.1.1 1994/05/24 10:05:09 rgrimes Exp $
* $Id: procfs_mem.c,v 1.2 1994/08/02 07:45:13 davidg Exp $
*/
/*
@ -180,7 +180,8 @@ procfs_rwmem(p, uio)
* Now do the i/o move.
*/
if (!error)
error = uiomove(kva + page_offset, len, uio);
error = uiomove((caddr_t)(kva + page_offset),
len, uio);
vm_map_remove(kernel_map, kva, kva + PAGE_SIZE);
}

View File

@ -36,10 +36,11 @@
* SUCH DAMAGE.
*
* from: @(#)kern_acct.c 8.1 (Berkeley) 6/14/93
* $Id$
* $Id: kern_acct.c,v 1.3 1994/08/02 07:41:52 davidg Exp $
*/
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
#include <sys/mount.h>
#include <sys/vnode.h>

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tty_pty.c 8.2 (Berkeley) 9/23/93
* $Id$
* $Id: tty_pty.c,v 1.3 1994/08/02 07:42:51 davidg Exp $
*/
/*
@ -338,7 +338,8 @@ ptcread(dev, uio, flag)
if (pti->pt_send & TIOCPKT_IOCTL) {
cc = min(uio->uio_resid,
sizeof(tp->t_termios));
uiomove(&tp->t_termios, cc, uio);
uiomove((caddr_t)&tp->t_termios, cc,
uio);
}
pti->pt_send = 0;
return (0);

View File

@ -37,7 +37,7 @@
*
* @(#)procfs_mem.c 8.4 (Berkeley) 1/21/94
*
* $Id: procfs_mem.c,v 1.1.1.1 1994/05/24 10:05:09 rgrimes Exp $
* $Id: procfs_mem.c,v 1.2 1994/08/02 07:45:13 davidg Exp $
*/
/*
@ -180,7 +180,8 @@ procfs_rwmem(p, uio)
* Now do the i/o move.
*/
if (!error)
error = uiomove(kva + page_offset, len, uio);
error = uiomove((caddr_t)(kva + page_offset),
len, uio);
vm_map_remove(kernel_map, kva, kva + PAGE_SIZE);
}