summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1994-09-15 19:47:47 +0000
committerbde <bde@FreeBSD.org>1994-09-15 19:47:47 +0000
commit9400f03fed81eb800b0bf44dae4b383dca6c2a95 (patch)
treecb67b8c6bb1d5a2960e21e89b41741310a0b98e2 /sys/kern
parent1bfaf25b30ba76f2f7d7cec0cd52127fdf3b4ffb (diff)
downloadFreeBSD-src-9400f03fed81eb800b0bf44dae4b383dca6c2a95.zip
FreeBSD-src-9400f03fed81eb800b0bf44dae4b383dca6c2a95.tar.gz
Supply prototypes for some functions that were implicitly declared and
fix the resulting warnings.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_acct.c3
-rw-r--r--sys/kern/tty_pty.c5
2 files changed, 5 insertions, 3 deletions
diff --git a/sys/kern/kern_acct.c b/sys/kern/kern_acct.c
index 456eb33..95c5660 100644
--- a/sys/kern/kern_acct.c
+++ b/sys/kern/kern_acct.c
@@ -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>
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c
index d6d4870..210aac6 100644
--- a/sys/kern/tty_pty.c
+++ b/sys/kern/tty_pty.c
@@ -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);
OpenPOWER on IntegriCloud