summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>1998-10-03 11:01:39 +0000
committerDoug Rabson <dfr@FreeBSD.org>1998-10-03 11:01:39 +0000
commit7fb2045a4101182ce5f59f42fd89ce705e9363a4 (patch)
tree29cd49f16385bd3658417431eddf3a04c693a099
parente4dc55c3cae979dd77172e8580a8d41e16728655 (diff)
Notes
-rw-r--r--usr.bin/tip/tip/cmds.c6
-rw-r--r--usr.bin/tip/tip/value.c7
2 files changed, 8 insertions, 5 deletions
diff --git a/usr.bin/tip/tip/cmds.c b/usr.bin/tip/tip/cmds.c
index ea24a53f840f..2141dfc0dbf2 100644
--- a/usr.bin/tip/tip/cmds.c
+++ b/usr.bin/tip/tip/cmds.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)cmds.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
- "$Id: cmds.c,v 1.6 1997/08/26 10:25:16 eivind Exp $";
+ "$Id: cmds.c,v 1.7 1998/06/09 04:28:02 imp Exp $";
#endif /* not lint */
#include "tipconf.h"
@@ -497,7 +497,7 @@ transmit(fd, eofchars, command)
printf("\r%d", ++lcount);
if (boolean(value(ECHOCHECK))) {
timedout = 0;
- alarm((int)value(ETIMEOUT));
+ alarm(number(value(ETIMEOUT)));
do { /* wait for prompt */
read(FD, (char *)&c, 1);
if (timedout || stop) {
@@ -586,7 +586,7 @@ send(c)
}
tryagain:
timedout = 0;
- alarm((int)value(ETIMEOUT));
+ alarm(number(value(ETIMEOUT)));
read(FD, &cc, 1);
alarm(0);
if (timedout) {
diff --git a/usr.bin/tip/tip/value.c b/usr.bin/tip/tip/value.c
index 5b8cae9e5396..52bcfeba1e62 100644
--- a/usr.bin/tip/tip/value.c
+++ b/usr.bin/tip/tip/value.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)value.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: value.c,v 1.3 1997/08/18 07:16:12 charnier Exp $";
#endif /* not lint */
#include "tip.h"
@@ -66,7 +66,10 @@ vinit()
if ((cp = getenv(p->v_name)))
p->v_value = cp;
if (p->v_type&IREMOTE)
- number(p->v_value) = *address(p->v_value);
+ if (p->v_type&STRING)
+ p->v_value = *(char **) address(p->v_value);
+ else
+ number(p->v_value) = *address(p->v_value);
}
/*
* Read the .tiprc file in the HOME directory