mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-17 16:44:00 +00:00
Remove unused variable and avoid shadow declarations, declare temps near point-of-use in unixcomm.c
This commit is contained in:
parent
89c3041339
commit
77ad9204af
@ -365,7 +365,7 @@ static int FindAvailablePty(char *Slave) {
|
||||
/************************************************************************/
|
||||
|
||||
LispPTR Unix_handlecomm(LispPTR *args) {
|
||||
int command, dest, i, slot, sock;
|
||||
int command, dest, slot;
|
||||
unsigned char d[6];
|
||||
unsigned char ch;
|
||||
unsigned char buf[1];
|
||||
@ -852,6 +852,7 @@ LispPTR Unix_handlecomm(LispPTR *args) {
|
||||
case 15: /* Write buffer */
|
||||
{
|
||||
DLword *bufp;
|
||||
int i;
|
||||
N_GETNUMBER(args[1], slot, bad); /* Get job # */
|
||||
bufp = (Addr68k_from_LADDR(args[2])); /* User buffer */
|
||||
N_GETNUMBER(args[3], i, bad); /* # to write */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user