summaryrefslogtreecommitdiff
path: root/src/tty.c
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amade@asmblr.net>2017-07-07 19:39:36 +0200
committerAmadeusz Sławiński <amade@asmblr.net>2017-07-09 23:50:41 +0200
commite947382b6dd2f3901d47afd9659893fecf3d3e6f (patch)
tree2157b17c2adb7e82d27b0915be7ed1014468d9df /src/tty.c
parent86ce25b620c52c9bdea94bf1185a274466f69b80 (diff)
downloadscreen-e947382b6dd2f3901d47afd9659893fecf3d3e6f.tar.gz
expose less functions via header
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
Diffstat (limited to 'src/tty.c')
-rw-r--r--src/tty.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/tty.c b/src/tty.c
index 09eb2c2..0e642ab 100644
--- a/src/tty.c
+++ b/src/tty.c
@@ -49,11 +49,14 @@
#include "tty.h"
static void consredir_readev_fn(Event *, void *);
+static struct baud_values *lookup_baud (int);
bool separate_sids = true;
static void DoSendBreak(int, int, int);
static void SigAlrmDummy(int);
+static int SttyMode(struct mode *, char *);
+static int SetBaud (struct mode *, int, int);
/* Frank Schulz (fschulz@pyramid.com):
* I have no idea why VSTART is not defined and my fix is probably not
@@ -536,7 +539,7 @@ void SetFlow(bool on)
}
/* parse commands from opt and modify m */
-int SttyMode(struct mode *m, char *opt)
+static int SttyMode(struct mode *m, char *opt)
{
static const char sep[] = " \t:;,";
@@ -1147,7 +1150,7 @@ static struct baud_values btable[] = {
* baud may either be a bits-per-second value or a symbolic
* value as returned by cfget?speed()
*/
-struct baud_values *lookup_baud(int baud)
+static struct baud_values *lookup_baud(int baud)
{
for (struct baud_values *p = btable; p->bps >= 0; p++)
if (baud == p->bps || baud == p->sym)
@@ -1161,7 +1164,7 @@ struct baud_values *lookup_baud(int baud)
* termio B... symbols as defined in e.g. suns sys/ttydev.h
* -1 means don't change.
*/
-int SetBaud(struct mode *m, int ibaud, int obaud)
+static int SetBaud(struct mode *m, int ibaud, int obaud)
{
struct baud_values *ip, *op;