summaryrefslogtreecommitdiffstats
path: root/usr.bin/tset/term.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2001-12-11 23:29:45 +0000
committermarkm <markm@FreeBSD.org>2001-12-11 23:29:45 +0000
commit279222ba62c185d7d7ec09017bb3e7760fd333f0 (patch)
treef93561aa7b038071d9b73c25694be6d55b9b3663 /usr.bin/tset/term.c
parenta71a530c96758135360c74dec808c73a5fa1ef8d (diff)
downloadFreeBSD-src-279222ba62c185d7d7ec09017bb3e7760fd333f0.zip
FreeBSD-src-279222ba62c185d7d7ec09017bb3e7760fd333f0.tar.gz
WARNS=2 fixes, use __FBSDID().
Diffstat (limited to 'usr.bin/tset/term.c')
-rw-r--r--usr.bin/tset/term.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/usr.bin/tset/term.c b/usr.bin/tset/term.c
index 857f9b1..79f8b5a 100644
--- a/usr.bin/tset/term.c
+++ b/usr.bin/tset/term.c
@@ -31,13 +31,13 @@
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
+
+__FBSDID("$FreeBSD$");
+
#ifndef lint
-#if 0
-static char sccsid[] = "@(#)term.c 8.1 (Berkeley) 6/9/93";
+static const char sccsid[] = "@(#)term.c 8.1 (Berkeley) 6/9/93";
#endif
-static const char rcsid[] =
- "$FreeBSD$";
-#endif /* not lint */
#include <sys/types.h>
#include <err.h>
@@ -51,20 +51,21 @@ static const char rcsid[] =
char tbuf[1024]; /* Termcap entry. */
-char *askuser __P((char *));
+const char *askuser __P((const char *));
char *ttys __P((char *));
/*
* Figure out what kind of terminal we're dealing with, and then read in
* its termcap entry.
*/
-char *
+const char *
get_termcap_entry(userarg, tcapbufp)
char *userarg, **tcapbufp;
{
struct ttyent *t;
int rval;
- char *p, *ttype, *ttypath;
+ char *p, *ttypath;
+ const char *ttype;
if (userarg) {
ttype = userarg;
@@ -123,9 +124,9 @@ found: if ((p = getenv("TERMCAP")) != NULL && *p != '/')
}
/* Prompt the user for a terminal type. */
-char *
+const char *
askuser(dflt)
- char *dflt;
+ const char *dflt;
{
static char answer[256];
char *p;
OpenPOWER on IntegriCloud