Some 64bit portability fixes.

This commit is contained in:
Doug Rabson 1998-10-03 11:01:39 +00:00
parent e4dc55c3ca
commit 7fb2045a41
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=39915
2 changed files with 8 additions and 5 deletions

View File

@ -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) {

View File

@ -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