summaryrefslogtreecommitdiffstats
path: root/usr.bin/tset/set.c
diff options
context:
space:
mode:
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