diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-12-14 08:32:45 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-12-14 08:32:45 +0000 |
commit | 87b6de2b76c97cb6262434dcacebf53d0c457cef (patch) | |
tree | 17b584943b186d479fdf3906ec2bef1ea2ca47bf /sys/kern/tty_pty.c | |
parent | e531deaeb2d13c64871020a16b02e573c5dbd5c6 (diff) | |
download | src-87b6de2b76c97cb6262434dcacebf53d0c457cef.tar.gz src-87b6de2b76c97cb6262434dcacebf53d0c457cef.zip |
A Major staticize sweep. Generates a couple of warnings that I'll deal
with later.
A number of unused vars removed.
A number of unused procs removed or #ifdefed.
Notes
Notes:
svn path=/head/; revision=12819
Diffstat (limited to 'sys/kern/tty_pty.c')
-rw-r--r-- | sys/kern/tty_pty.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c index 593e9caadace..10ee74f52718 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: tty_pty.c,v 1.31 1995/12/10 15:55:17 bde Exp $ + * $Id: tty_pty.c,v 1.32 1995/12/13 15:13:15 julian Exp $ */ /* @@ -56,9 +56,9 @@ #include <sys/devfsext.h> #endif /*DEVFS*/ -void ptyattach __P((int n)); -void ptsstart __P((struct tty *tp)); -void ptcwakeup __P((struct tty *tp, int flag)); +static void ptyattach __P((int n)); +static void ptsstart __P((struct tty *tp)); +static void ptcwakeup __P((struct tty *tp, int flag)); static d_open_t ptsopen; static d_close_t ptsclose; @@ -98,14 +98,14 @@ static struct cdevsw ptc_cdevsw = * pts == /dev/tty[pqrsPQRS][0123456789abcdefghijklmnopqrstuv] * ptc == /dev/pty[pqrsPQRS][0123456789abcdefghijklmnopqrstuv] */ -struct tty pt_tty[NPTY]; /* XXX */ -struct pt_ioctl { +static struct tty pt_tty[NPTY]; /* XXX */ +static struct pt_ioctl { int pt_flags; struct selinfo pt_selr, pt_selw; u_char pt_send; u_char pt_ucntl; } pt_ioctl[NPTY]; /* XXX */ -int npty = NPTY; /* for pstat -t */ +static int npty = NPTY; /* for pstat -t */ #define PF_PKT 0x08 /* packet mode */ #define PF_STOPPED 0x10 /* user told stopped */ @@ -118,7 +118,7 @@ int npty = NPTY; /* for pstat -t */ * * XXX cdevsw & pstat require the array `pty[]' to be an array */ -void +static void ptyattach(n) int n; { @@ -268,7 +268,7 @@ ptswrite(dev, uio, flag) * Start output on pseudo-tty. * Wake up process selecting or sleeping for input from controlling tty. */ -void +static void ptsstart(tp) struct tty *tp; { @@ -283,7 +283,7 @@ ptsstart(tp) ptcwakeup(tp, FREAD); } -void +static void ptcwakeup(tp, flag) struct tty *tp; int flag; @@ -770,8 +770,8 @@ static ptc_devsw_installed = 0; #define MAXUNITS (8 * 32) static void *devfs_token_pts[MAXUNITS]; static void *devfs_token_ptc[MAXUNITS]; -const char jnames[] = "pqrsPQRS"; -const char knames[] = "0123456789abcdefghijklmnopqrstuv"; +static const char jnames[] = "pqrsPQRS"; +static const char knames[] = "0123456789abcdefghijklmnopqrstuv"; #endif static void |