1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-17 08:33:48 +00:00

Correct prototype/definition misuse of () for (void) on various functions.

This commit is contained in:
Nick Briggs 2022-12-10 12:15:06 -08:00
parent 36a7422ebc
commit 47ac0eacc5
3 changed files with 10 additions and 10 deletions

View File

@ -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);
}

View File

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

View File

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