aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/tset
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2012-11-04 02:52:03 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2012-11-04 02:52:03 +0000
commit23090366f729c56cab62de74c7a51792357e98a9 (patch)
treec511c885796e28ec571b5267e8f11f3b103d35e9 /usr.bin/tset
parent7750ad47a9a7dbc83f87158464170c8640723293 (diff)
parent22ff74b2f44234d31540b1f7fd6c91489c37cad3 (diff)
downloadsrc-23090366f729c56cab62de74c7a51792357e98a9.tar.gz
src-23090366f729c56cab62de74c7a51792357e98a9.zip
Sync from head
Notes
Notes: svn path=/projects/bmake/; revision=242545
Diffstat (limited to 'usr.bin/tset')
-rw-r--r--usr.bin/tset/extern.h3
-rw-r--r--usr.bin/tset/map.c9
-rw-r--r--usr.bin/tset/term.c2
3 files changed, 8 insertions, 6 deletions
diff --git a/usr.bin/tset/extern.h b/usr.bin/tset/extern.h
index 833870eee77c..f4a6514fbd3b 100644
--- a/usr.bin/tset/extern.h
+++ b/usr.bin/tset/extern.h
@@ -30,9 +30,12 @@
* $FreeBSD$
*/
+#include <termios.h>
+
extern struct termios mode, oldmode;
extern int Columns, isreset, Lines;
extern int erasech, intrchar, killch;
+extern speed_t Ospeed;
void add_mapping(const char *, char *);
void cat(char *);
diff --git a/usr.bin/tset/map.c b/usr.bin/tset/map.c
index 8de594fecdd6..715f51471705 100644
--- a/usr.bin/tset/map.c
+++ b/usr.bin/tset/map.c
@@ -44,8 +44,7 @@ static const char sccsid[] = "@(#)map.c 8.1 (Berkeley) 6/9/93";
#include "extern.h"
-extern speed_t Ospeed;
-speed_t tset_baudrate(char *);
+static speed_t tset_baudrate(char *);
/* Baud rate conditionals for mapping. */
#define GT 0x01
@@ -63,7 +62,7 @@ typedef struct map {
speed_t speed; /* Baud rate to compare against. */
} MAP;
-MAP *cur, *maplist;
+static MAP *cur, *maplist;
/*
* Syntax for -m:
@@ -224,7 +223,7 @@ typedef struct speeds {
speed_t speed;
} SPEEDS;
-SPEEDS speeds[] = {
+static SPEEDS speeds[] = {
{ "0", B0 },
{ "134.5", B134 },
{ "exta", B19200 },
@@ -232,7 +231,7 @@ SPEEDS speeds[] = {
{ NULL, 0 }
};
-speed_t
+static speed_t
tset_baudrate(char *rate)
{
SPEEDS *sp;
diff --git a/usr.bin/tset/term.c b/usr.bin/tset/term.c
index 544e9288bb28..106c98f22d35 100644
--- a/usr.bin/tset/term.c
+++ b/usr.bin/tset/term.c
@@ -46,7 +46,7 @@ static const char sccsid[] = "@(#)term.c 8.1 (Berkeley) 6/9/93";
#include <ttyent.h>
#include "extern.h"
-char tbuf[1024]; /* Termcap entry. */
+static char tbuf[1024]; /* Termcap entry. */
const char *askuser(const char *);
char *ttys(char *);