diff options
| author | ceastha <none@none> | 2005-10-21 06:19:38 -0700 |
|---|---|---|
| committer | ceastha <none@none> | 2005-10-21 06:19:38 -0700 |
| commit | 462be471126495414a94f9fa35e16c02dc462c04 (patch) | |
| tree | c252a3741c8f3e047fd1429292a4c04e8e53207b /usr/src/cmd/bnu/setmode.c | |
| parent | 54719d5edb7521bb3a321ad8bd9ebc251d61a1a0 (diff) | |
| download | illumos-joyent-462be471126495414a94f9fa35e16c02dc462c04.tar.gz | |
6268925 cmd/bnu and gcc don't get along
Diffstat (limited to 'usr/src/cmd/bnu/setmode.c')
| -rw-r--r-- | usr/src/cmd/bnu/setmode.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/usr/src/cmd/bnu/setmode.c b/usr/src/cmd/bnu/setmode.c index 2daf89719b..8d4cd16d1e 100644 --- a/usr/src/cmd/bnu/setmode.c +++ b/usr/src/cmd/bnu/setmode.c @@ -1,6 +1,6 @@ /* - * Copyright (c) 1988,1989,1999 by Sun Microsystems, Inc. - * All rights reserved. + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. */ /* @@ -21,12 +21,17 @@ static struct termios termios_set; static struct termios termios_clear; +static int parse_modes(char *modes); +static void setty(int); + +int setmode(modes, fd) char *modes; int fd; { if (parse_modes(modes)) setty(fd); + return (0); } struct mds { @@ -276,9 +281,9 @@ static int parse_modes(modes) char *modes; { - register char *curtoken; - register int match; - register int i; + char *curtoken; + int match; + int i; termios_clear.c_iflag = 0; termios_clear.c_oflag = 0; @@ -332,8 +337,8 @@ parse_modes(modes) /* * setup tty lines. */ -static -setty(fd) +static void +setty(int fd) { struct termios termios; |
