mirror of
https://github.com/Interlisp/maiko.git
synced 2026-04-29 21:37:32 +00:00
Fix warnings for unused variables when NOETHER is defined (#174)
This commit is contained in:
12
src/ether.c
12
src/ether.c
@@ -333,9 +333,6 @@ LispPTR ether_ctrlr(LispPTR args[])
|
|||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
LispPTR ether_reset(LispPTR args[])
|
LispPTR ether_reset(LispPTR args[])
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
char hostnumber[6];
|
|
||||||
|
|
||||||
if (ether_fd < 0) { return (NIL); }
|
if (ether_fd < 0) { return (NIL); }
|
||||||
/* JRB - host number check removed here; if ether_fd is open here,
|
/* JRB - host number check removed here; if ether_fd is open here,
|
||||||
net is on... */
|
net is on... */
|
||||||
@@ -363,11 +360,12 @@ LispPTR ether_reset(LispPTR args[])
|
|||||||
/************************************************************************/
|
/************************************************************************/
|
||||||
LispPTR ether_get(LispPTR args[])
|
LispPTR ether_get(LispPTR args[])
|
||||||
{
|
{
|
||||||
LispPTR MaxByteCount;
|
|
||||||
LispPTR result = NIL;
|
LispPTR result = NIL;
|
||||||
int interrupt_mask;
|
|
||||||
|
|
||||||
#ifndef NOETHER
|
#ifndef NOETHER
|
||||||
|
LispPTR MaxByteCount;
|
||||||
|
#ifndef SYSVSIGNALS
|
||||||
|
int interrupt_mask;
|
||||||
|
#endif
|
||||||
MaxByteCount = 2 * (0xFFFF & args[0]); /* words to bytes */
|
MaxByteCount = 2 * (0xFFFF & args[0]); /* words to bytes */
|
||||||
|
|
||||||
DBPRINT(("Ether Get. "));
|
DBPRINT(("Ether Get. "));
|
||||||
@@ -494,9 +492,11 @@ static struct timeval EtherTimeout = {0, 0};
|
|||||||
* checks an incoming packet
|
* checks an incoming packet
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
|
|
||||||
|
#ifndef NOETHER
|
||||||
#ifndef PKTFILTER
|
#ifndef PKTFILTER
|
||||||
static int nitpos = 0, nitlen = 0; /* for NIT read buffer in OS3 */
|
static int nitpos = 0, nitlen = 0; /* for NIT read buffer in OS3 */
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
LispPTR check_ether() {
|
LispPTR check_ether() {
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user