diff options
author | David Greenman <dg@FreeBSD.org> | 2000-11-11 23:03:38 +0000 |
---|---|---|
committer | David Greenman <dg@FreeBSD.org> | 2000-11-11 23:03:38 +0000 |
commit | e61715de39af65bd575c31be9ffe8f77eb4614e8 (patch) | |
tree | c4bb92b8a951abea505b1c6fb1d1650a9d4924a7 /usr.bin/tset/tset.c | |
parent | 8bcbe4b7a6866a7beccc068e01bb8915ea2593f3 (diff) | |
download | src-e61715de39af65bd575c31be9ffe8f77eb4614e8.tar.gz src-e61715de39af65bd575c31be9ffe8f77eb4614e8.zip |
Changed variable killchar to killch and erasechar to erasech to avoid
a name clash with the library functions of the same name (in libncurses).
This problem was masked when building tset shared (the local symbols had
precedence), but caused tset to core dump when it was built -static.
Notes
Notes:
svn path=/head/; revision=68617
Diffstat (limited to 'usr.bin/tset/tset.c')
-rw-r--r-- | usr.bin/tset/tset.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/tset/tset.c b/usr.bin/tset/tset.c index c14654765b50..7a7ca82eb8c1 100644 --- a/usr.bin/tset/tset.c +++ b/usr.bin/tset/tset.c @@ -62,10 +62,10 @@ void usage __P((void)); struct termios mode, oldmode; -int erasechar; /* new erase character */ +int erasech; /* new erase character */ int intrchar; /* new interrupt character */ int isreset; /* invoked as reset */ -int killchar; /* new kill character */ +int killch; /* new kill character */ int Lines, Columns; /* window size */ speed_t Ospeed; @@ -110,7 +110,7 @@ main(argc, argv) add_mapping("dialup", optarg); break; case 'e': /* erase character */ - erasechar = optarg[0] == '^' && optarg[1] != '\0' ? + erasech = optarg[0] == '^' && optarg[1] != '\0' ? optarg[1] == '?' ? '\177' : CTRL(optarg[1]) : optarg[0]; break; @@ -123,7 +123,7 @@ main(argc, argv) optarg[0]; break; case 'k': /* kill character */ - killchar = optarg[0] == '^' && optarg[1] != '\0' ? + killch = optarg[0] == '^' && optarg[1] != '\0' ? optarg[1] == '?' ? '\177' : CTRL(optarg[1]) : optarg[0]; break; |