Supply prototypes for some functions that were implicitly declared and
fix the resulting warnings.
This commit is contained in:
parent
fc75376fae
commit
91d2f60f72
@ -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);
|
||||
}
|
||||
|
@ -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>
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user