aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/tset/term.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2009-12-11 23:30:22 +0000
committerXin LI <delphij@FreeBSD.org>2009-12-11 23:30:22 +0000
commite87862f53a119884d2103da7ba52cf7d14426803 (patch)
treeaefcfd0dd28d25d858a8736b71b6e416b65f8925 /usr.bin/tset/term.c
parent3daadfc83361cf4f31017a7fed5a5910cd8c4ce9 (diff)
Remove unnecessary termcap.h includes inherited from extern.h and other
unneeded headers. While I'm there, make function definations ANSI prototypes.
Notes
Notes: svn path=/head/; revision=200419
Diffstat (limited to 'usr.bin/tset/term.c')
-rw-r--r--usr.bin/tset/term.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/tset/term.c b/usr.bin/tset/term.c
index 54a349e05f2b..16acb23f6eaf 100644
--- a/usr.bin/tset/term.c
+++ b/usr.bin/tset/term.c
@@ -45,6 +45,7 @@ static const char sccsid[] = "@(#)term.c 8.1 (Berkeley) 6/9/93";
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <termcap.h>
#include <unistd.h>
#include <ttyent.h>
#include "extern.h"
@@ -59,8 +60,7 @@ char *ttys(char *);
* its termcap entry.
*/
const char *
-get_termcap_entry(userarg, tcapbufp)
- char *userarg, **tcapbufp;
+get_termcap_entry(char *userarg, char **tcapbufp)
{
struct ttyent *t;
int rval;
@@ -125,8 +125,7 @@ found: if ((p = getenv("TERMCAP")) != NULL && *p != '/')
/* Prompt the user for a terminal type. */
const char *
-askuser(dflt)
- const char *dflt;
+askuser(const char *dflt)
{
static char answer[256];
char *p;