summaryrefslogtreecommitdiffstats
path: root/usr.bin/tset/set.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-12-11 23:30:22 +0000
committerdelphij <delphij@FreeBSD.org>2009-12-11 23:30:22 +0000
commitf8bfec1fb23c300d6b8bb021cf4f7fdd21981c3f (patch)
treeaefcfd0dd28d25d858a8736b71b6e416b65f8925 /usr.bin/tset/set.c
parent1f8935fbf1845f4e3c016933b972389054881c1c (diff)
downloadFreeBSD-src-f8bfec1fb23c300d6b8bb021cf4f7fdd21981c3f.zip
FreeBSD-src-f8bfec1fb23c300d6b8bb021cf4f7fdd21981c3f.tar.gz
Remove unnecessary termcap.h includes inherited from extern.h and other
unneeded headers. While I'm there, make function definations ANSI prototypes.
Diffstat (limited to 'usr.bin/tset/set.c')
-rw-r--r--usr.bin/tset/set.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/tset/set.c b/usr.bin/tset/set.c
index 85965b3..39a0d96 100644
--- a/usr.bin/tset/set.c
+++ b/usr.bin/tset/set.c
@@ -40,6 +40,7 @@ static const char sccsid[] = "@(#)set.c 8.2 (Berkeley) 2/28/94";
#endif
#include <stdio.h>
+#include <termcap.h>
#include <termios.h>
#include <unistd.h>
@@ -54,7 +55,7 @@ int set_tabs(void);
* a child program dies in raw mode.
*/
void
-reset_mode()
+reset_mode(void)
{
tcgetattr(STDERR_FILENO, &mode);
@@ -155,7 +156,7 @@ reset_mode()
* entry and command line and update their values in 'mode'.
*/
void
-set_control_chars()
+set_control_chars(void)
{
char *bp, *p, bs_char, buf[1024];
@@ -192,8 +193,7 @@ set_control_chars()
* uppercase to internal lowercase.
*/
void
-set_conversions(usingupper)
- int usingupper;
+set_conversions(int usingupper)
{
if (tgetflag("UC") || usingupper) {
#ifdef IUCLC
@@ -238,7 +238,7 @@ set_conversions(usingupper)
/* Output startup string. */
void
-set_init()
+set_init(void)
{
char *bp, buf[1024];
int settle;
@@ -282,7 +282,7 @@ set_init()
* Return nonzero if we set any tab stops, zero if not.
*/
int
-set_tabs()
+set_tabs(void)
{
int c;
char *capsp, *clear_tabs;
OpenPOWER on IntegriCloud