summaryrefslogtreecommitdiff
path: root/sys/compat/ibcs2/ibcs2_ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/ibcs2/ibcs2_ioctl.c')
-rw-r--r--sys/compat/ibcs2/ibcs2_ioctl.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/compat/ibcs2/ibcs2_ioctl.c b/sys/compat/ibcs2/ibcs2_ioctl.c
index 61729dc05b1..2da1fbfc785 100644
--- a/sys/compat/ibcs2/ibcs2_ioctl.c
+++ b/sys/compat/ibcs2/ibcs2_ioctl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ibcs2_ioctl.c,v 1.10 1995/12/26 17:56:36 mycroft Exp $ */
+/* $NetBSD: ibcs2_ioctl.c,v 1.11 1996/05/03 17:05:22 christos Exp $ */
/*
* Copyright (c) 1994, 1995 Scott Bartram
@@ -111,6 +111,11 @@ static u_long s2btab[] = {
38400,
};
+static void stios2btios __P((struct ibcs2_termios *, struct termios *));
+static void btios2stios __P((struct termios *, struct ibcs2_termios *));
+static void stios2stio __P((struct ibcs2_termios *, struct ibcs2_termio *));
+static void stio2stios __P((struct ibcs2_termio *, struct ibcs2_termios *));
+
static void
stios2btios(st, bt)
struct ibcs2_termios *st;
@@ -336,7 +341,7 @@ ibcs2_sys_ioctl(p, v, retval)
} */ *uap = v;
struct filedesc *fdp = p->p_fd;
struct file *fp;
- int (*ctl)();
+ int (*ctl) __P((struct file *, u_long, caddr_t, struct proc *));
int error;
if (SCARG(uap, fd) < 0 || SCARG(uap, fd) >= fdp->fd_nfiles ||
@@ -504,7 +509,7 @@ ibcs2_sys_ioctl(p, v, retval)
SCARG(&sa, pid) = 0;
SCARG(&sa, pgid) = (int)SCARG(uap, data);
- if (error = sys_setpgid(p, &sa, retval))
+ if ((error = sys_setpgid(p, &sa, retval)) != 0)
return error;
return 0;
}