summaryrefslogtreecommitdiffstats
path: root/lib/libutil/pty.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2003-10-18 10:04:16 +0000
committermarkm <markm@FreeBSD.org>2003-10-18 10:04:16 +0000
commit3f45792057cf4f7381e74bec6f437cdb290e1817 (patch)
tree204484574f03753da73a26a0ec8c893e61e56e98 /lib/libutil/pty.c
parent4d1565cf183af3ea64b06fbc0cff68b6956350bb (diff)
downloadFreeBSD-src-3f45792057cf4f7381e74bec6f437cdb290e1817.zip
FreeBSD-src-3f45792057cf4f7381e74bec6f437cdb290e1817.tar.gz
ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify.
Diffstat (limited to 'lib/libutil/pty.c')
-rw-r--r--lib/libutil/pty.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/libutil/pty.c b/lib/libutil/pty.c
index 4a2ea78..b230edb 100644
--- a/lib/libutil/pty.c
+++ b/lib/libutil/pty.c
@@ -54,11 +54,7 @@ static char sccsid[] = "@(#)pty.c 8.3 (Berkeley) 5/16/94";
#include <unistd.h>
int
-openpty(amaster, aslave, name, termp, winp)
- int *amaster, *aslave;
- char *name;
- struct termios *termp;
- struct winsize *winp;
+openpty(int *amaster, int *aslave, char *name, struct termios *termp, struct winsize *winp)
{
char line[] = "/dev/ptyXX";
const char *cp1, *cp2;
@@ -105,11 +101,7 @@ openpty(amaster, aslave, name, termp, winp)
}
int
-forkpty(amaster, name, termp, winp)
- int *amaster;
- char *name;
- struct termios *termp;
- struct winsize *winp;
+forkpty(int *amaster, char *name, struct termios *termp, struct winsize *winp)
{
int master, slave, pid;
OpenPOWER on IntegriCloud