diff --git a/src/ether_common.c b/src/ether_common.c index 925f46c..f85b9ee 100644 --- a/src/ether_common.c +++ b/src/ether_common.c @@ -43,7 +43,7 @@ int ETHEREventCount = 0; /* */ /************************************************************************/ -void init_ifpage_ether() { +void init_ifpage_ether(void) { InterfacePage->nshost0 = (DLword)((ether_host[0] << 8) + ether_host[1]); InterfacePage->nshost1 = (DLword)((ether_host[2] << 8) + ether_host[3]); InterfacePage->nshost2 = (DLword)((ether_host[4] << 8) + ether_host[5]); @@ -196,7 +196,7 @@ LispPTR ether_setfilter(LispPTR args[]) * check_ether() 175/77/0 * checks an incoming packet **********************************************************************/ -LispPTR check_ether() +LispPTR check_ether(void) { return (NIL); } diff --git a/src/ether_nethub.c b/src/ether_nethub.c index 63ca502..7e5c883 100644 --- a/src/ether_nethub.c +++ b/src/ether_nethub.c @@ -188,7 +188,7 @@ void connectToHub(void) { log_all(("connectToHub() - connected to nethub\n")); } -static void disconnectFromHub() { +static void disconnectFromHub(void) { if (ether_fd > -1) { close(ether_fd); ether_fd = -1; @@ -212,7 +212,7 @@ static void disconnectFromHub() { * >0: number of bytes received and placed in ether_buf */ -static int recvPacket() { +static int recvPacket(void) { int rcvLen; unsigned short bLen; @@ -539,7 +539,7 @@ LispPTR ether_setfilter(LispPTR args[]) * check_ether() 175/77/0 * checks an incoming packet **********************************************************************/ -LispPTR check_ether() +LispPTR check_ether(void) { int receivedBytes; struct pollfd pfds[1]; diff --git a/src/ether_sunos.c b/src/ether_sunos.c index a125b77..729f2c8 100644 --- a/src/ether_sunos.c +++ b/src/ether_sunos.c @@ -474,7 +474,7 @@ LispPTR ether_setfilter(LispPTR args[]) int estat[3]; -int *ether_debug() { +int *ether_debug(void) { #ifdef MAIKO_ENABLE_ETHERNET estat[0] = 0; if (ether_fd < 0) return (NIL); @@ -500,7 +500,7 @@ static int nitpos = 0, nitlen = 0; /* for NIT read buffer in OS3 */ #endif #endif -LispPTR check_ether() { +LispPTR check_ether(void) { /* * If receiver active then check if any packets are * available from the ethernet. If so, read the packet @@ -615,7 +615,7 @@ LispPTR check_ether() { /* */ /************************************************************************/ -LispPTR get_packet() { +LispPTR get_packet(void) { #ifdef MAIKO_ENABLE_ETHERNET #ifndef PKTFILTER fd_set rfds; @@ -739,7 +739,7 @@ static int check_filter(u_char *buffer) * init_uid() * sets effective user-id to real user-id **********************************************************************/ -static void init_uid() { +static void init_uid(void) { int rid; rid = getuid(); setuid(rid); @@ -758,7 +758,7 @@ struct sockaddr_nit snit; /* open nit socket, called from main before starting BCE. */ /* */ /************************************************************************/ -void init_ether() { +void init_ether(void) { #ifdef MAIKO_ENABLE_ETHERNET /* JRB - This code will have to be a bit different for SUN 4.0; the probable