aboutsummaryrefslogtreecommitdiffstats
path: root/src/keydis.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/keydis.c')
-rw-r--r--src/keydis.c25
1 files changed, 15 insertions, 10 deletions
diff --git a/src/keydis.c b/src/keydis.c
index ad75996..d4f415e 100644
--- a/src/keydis.c
+++ b/src/keydis.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.17 2012/06/22 10:22:24 james
+ * *** empty log message ***
+ *
* Revision 1.16 2008/03/10 11:49:33 james
* *** empty log message ***
*
@@ -68,11 +71,13 @@ static char rcsid[] = "$Id$";
#define CMD_BUFLEN 128
-typedef struct {
+typedef struct
+{
KEYDIS_SIGNATURE;
} KeyDis_VT102;
-typedef struct {
+typedef struct
+{
KEYDIS_SIGNATURE;
Socket *s;
} KeyDis_IPC;
@@ -176,7 +181,7 @@ keydis_ipc_reset (KeyDis * _t, Context * c)
static int
keydis_vt102_key (KeyDis * _t, Context * c, int key)
{
- KeyDis_VT102 *t = (KeyDis_VT102 *) _t;
+ //KeyDis_VT102 *t = (KeyDis_VT102 *) _t;
vt102_send (c, key);
return 0;
@@ -185,7 +190,7 @@ keydis_vt102_key (KeyDis * _t, Context * c, int key)
static int
keydis_vt102_set_baud (KeyDis * _t, Context * c, int baud)
{
- KeyDis_VT102 *t = (KeyDis_VT102 *) _t;
+ //KeyDis_VT102 *t = (KeyDis_VT102 *) _t;
tty_set_baud (c->t, baud);
tty_parse_reset (c);
@@ -198,7 +203,7 @@ keydis_vt102_set_baud (KeyDis * _t, Context * c, int baud)
static int
keydis_vt102_send_break (KeyDis * _t, Context * c)
{
- KeyDis_VT102 *t = (KeyDis_VT102 *) _t;
+ //KeyDis_VT102 *t = (KeyDis_VT102 *) _t;
log_f (c->l, "<break sent>");
tty_send_break (c->t);
@@ -209,7 +214,7 @@ keydis_vt102_send_break (KeyDis * _t, Context * c)
static int
keydis_vt102_set_flow (KeyDis * _t, Context * c, int flow)
{
- KeyDis_VT102 *t = (KeyDis_VT102 *) _t;
+ //KeyDis_VT102 *t = (KeyDis_VT102 *) _t;
log_f (c->l, "<flow control turned %s>", flow ? "on" : "off");
tty_set_flow (c->t, flow);
@@ -220,7 +225,7 @@ keydis_vt102_set_flow (KeyDis * _t, Context * c, int flow)
static int
keydis_vt102_set_ansi (KeyDis * _t, Context * c, int ansi)
{
- KeyDis_VT102 *t = (KeyDis_VT102 *) _t;
+ //KeyDis_VT102 *t = (KeyDis_VT102 *) _t;
if (c->v)
c->v->xn_glitch = ansi ? 0 : 1;
@@ -231,7 +236,7 @@ keydis_vt102_set_ansi (KeyDis * _t, Context * c, int ansi)
static int
keydis_vt102_hangup (KeyDis * _t, Context * c)
{
- KeyDis_VT102 *t = (KeyDis_VT102 *) _t;
+ //KeyDis_VT102 *t = (KeyDis_VT102 *) _t;
log_f (c->l, "<hangup initiated>");
tty_hangup (c->t);
@@ -242,7 +247,7 @@ keydis_vt102_hangup (KeyDis * _t, Context * c)
static int
keydis_vt102_set_size (KeyDis * _t, Context * c, int w, int h)
{
- KeyDis_VT102 *t = (KeyDis_VT102 *) _t;
+ //KeyDis_VT102 *t = (KeyDis_VT102 *) _t;
CRT_Pos p = { w, h };
vt102_resize (c, p);
@@ -253,7 +258,7 @@ keydis_vt102_set_size (KeyDis * _t, Context * c, int w, int h)
static int
keydis_vt102_reset (KeyDis * _t, Context * c)
{
- KeyDis_VT102 *t = (KeyDis_VT102 *) _t;
+ //KeyDis_VT102 *t = (KeyDis_VT102 *) _t;
vt102_reset (c);