summaryrefslogtreecommitdiff
path: root/usr.bin/tset
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2002-09-04 23:29:10 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2002-09-04 23:29:10 +0000
commitf4ac32def255b5968bdd8150057b9c0d14595689 (patch)
treefb230419005f211ecea1e667385bde9886dbf0d8 /usr.bin/tset
parentd946bf789255a84ecbbbdfd07bffb48da063204f (diff)
downloadsrc-test-f4ac32def255b5968bdd8150057b9c0d14595689.tar.gz
src-test-f4ac32def255b5968bdd8150057b9c0d14595689.zip
ANSIify function definitions.
Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5
Notes
Notes: svn path=/head/; revision=102944
Diffstat (limited to 'usr.bin/tset')
-rw-r--r--usr.bin/tset/tset.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/usr.bin/tset/tset.c b/usr.bin/tset/tset.c
index 5d3891ec674e5..dc4c333e2f90e 100644
--- a/usr.bin/tset/tset.c
+++ b/usr.bin/tset/tset.c
@@ -72,9 +72,7 @@ int Lines, Columns; /* window size */
speed_t Ospeed;
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
#ifdef TIOCGWINSZ
struct winsize win;
@@ -242,10 +240,7 @@ main(argc, argv)
* Tell the user if a control key has been changed from the default value.
*/
void
-report(name, which, def)
- const char *name;
- int which;
- u_int def;
+report(const char *name, int which, u_int def)
{
u_int old, new;
@@ -273,8 +268,7 @@ report(name, which, def)
* This means that -e, -i and -k get default arguments supplied for them.
*/
void
-obsolete(argv)
- char *argv[];
+obsolete(char *argv[])
{
for (; *argv; ++argv) {
if (argv[0][0] != '-' || (argv[1] && argv[1][0] != '-') ||
@@ -296,7 +290,7 @@ obsolete(argv)
}
void
-usage()
+usage(void)
{
(void)fprintf(stderr, "%s\n%s\n",
"usage: tset [-IQrSs] [-] [-e ch] [-i ch] [-k ch] [-m mapping] [terminal]",