mirror of
https://github.com/Interlisp/maiko.git
synced 2026-04-28 13:08:06 +00:00
Replace all K&R style function definitions with new-style function definitions.
Add some missing default function result types (int). Add some missing void result types where appropriate. modified: src/Cldeetr.c modified: src/atom.c modified: src/bbtsub.c modified: src/bitblt.c modified: src/byteswap.c modified: src/chardev.c modified: src/chatter.c modified: src/colorbltfns.c modified: src/common.c modified: src/dir.c modified: src/dlpi.c modified: src/doskbd.c modified: src/dosmouse.c modified: src/draw.c modified: src/dsk.c modified: src/dspsubrs.c modified: src/ejlisp.c modified: src/ether.c modified: src/imagefile.c modified: src/imagefile2.c modified: src/inet.c modified: src/initdsp.c modified: src/initkbd.c modified: src/kbdsubrs.c modified: src/ldeboot.c modified: src/llcolor.c modified: src/llstk.c modified: src/loader.c modified: src/loopsops.c modified: src/lpdual.c modified: src/lpmain.c modified: src/lpread.c modified: src/lptran.c modified: src/lpwrite.c modified: src/main.c modified: src/misc7.c modified: src/mkatom.c modified: src/mnwevent.c modified: src/mnxmeth.c modified: src/mouseif.c modified: src/ocr.c modified: src/ocrproc.c modified: src/oether.c modified: src/oldeether.c modified: src/osmsg.c modified: src/picture.c modified: src/rawcolor.c modified: src/rawrs232c.c modified: src/rpc.c modified: src/rs232c.c modified: src/socdvr.c modified: src/socket.c modified: src/testdsp.c modified: src/testtool.c modified: src/timeoday.c modified: src/timeofday.c modified: src/timer.c modified: src/truecolor.c modified: src/tty.c modified: src/ufn.c modified: src/ufs.c modified: src/unixcomm.c modified: src/unixfork.c modified: src/unwind.c modified: src/uraid.c modified: src/vesainit.c modified: src/vgainit.c modified: src/vmemsave.c modified: src/xcursor.c modified: src/xinit.c modified: src/xlspwin.c modified: src/xmkicon.c modified: src/xrdopt.c modified: src/xwinman.c
This commit is contained in:
33
src/oether.c
33
src/oether.c
@@ -135,7 +135,7 @@ static struct nit_ioc nioc;
|
||||
/* */
|
||||
/************************************************************************/
|
||||
|
||||
ether_suspend(args) LispPTR args[];
|
||||
LispPTR ether_suspend(LispPTR args[])
|
||||
{
|
||||
#ifndef NOETHER
|
||||
#ifdef OS4
|
||||
@@ -170,7 +170,7 @@ ether_suspend(args) LispPTR args[];
|
||||
/* */
|
||||
/************************************************************************/
|
||||
|
||||
ether_resume(args) LispPTR args[];
|
||||
LispPTR ether_resume(LispPTR args[])
|
||||
{
|
||||
if (ether_fd == -1) return (NIL);
|
||||
#ifndef NOETHER
|
||||
@@ -200,7 +200,7 @@ ether_resume(args) LispPTR args[];
|
||||
/* */
|
||||
/************************************************************************/
|
||||
|
||||
ether_ctrlr(args) LispPTR args[];
|
||||
LispPTR ether_ctrlr(LispPTR args[])
|
||||
{
|
||||
if (ether_fd < 0) return (NIL);
|
||||
return (ATOM_T);
|
||||
@@ -210,7 +210,7 @@ ether_ctrlr(args) LispPTR args[];
|
||||
* ether_reset(args) 175/73/0
|
||||
* reset ether controller and disable receipt of packets
|
||||
**********************************************************************/
|
||||
ether_reset(args) LispPTR args[];
|
||||
LispPTR ether_reset(LispPTR args[])
|
||||
{
|
||||
int i;
|
||||
char hostnumber[6];
|
||||
@@ -241,7 +241,7 @@ ether_reset(args) LispPTR args[];
|
||||
/* */
|
||||
/************************************************************************/
|
||||
|
||||
ether_get(args) LispPTR args[];
|
||||
LispPTR ether_get(LispPTR args[])
|
||||
{
|
||||
LispPTR MaxByteCount;
|
||||
LispPTR result = NIL;
|
||||
@@ -271,7 +271,7 @@ ether_get(args) LispPTR args[];
|
||||
**********************************************************************/
|
||||
#define OFFSET sizeof(sa.sa_data)
|
||||
|
||||
ether_send(args) LispPTR args[];
|
||||
LispPTR ether_send(LispPTR args[])
|
||||
{
|
||||
#ifndef NOETHER
|
||||
/*
|
||||
@@ -327,7 +327,7 @@ ether_send(args) LispPTR args[];
|
||||
* check whether a packet has come. if does, notify iocb
|
||||
**********************************************************************/
|
||||
|
||||
ether_setfilter(args) LispPTR args[];
|
||||
LispPTR ether_setfilter(LispPTR args[])
|
||||
{ return (NIL); } /* ether_setfilter */
|
||||
|
||||
/**********************************************************************
|
||||
@@ -361,7 +361,7 @@ static struct timeval EtherTimeout = {0, 0};
|
||||
static int nitpos = 0, nitlen = 0; /* for NIT read buffer in OS3 */
|
||||
#endif
|
||||
|
||||
check_ether() {
|
||||
LispPTR check_ether() {
|
||||
/*
|
||||
* If receiver active then check if any packets are
|
||||
* available from the ethernet. If so, read the packet
|
||||
@@ -476,7 +476,7 @@ check_ether() {
|
||||
/* */
|
||||
/************************************************************************/
|
||||
|
||||
get_packet() {
|
||||
LispPTR get_packet() {
|
||||
#ifndef NOETHER
|
||||
#ifndef OS4
|
||||
static int rfds;
|
||||
@@ -563,7 +563,7 @@ get_packet() {
|
||||
* This is believed obsolete with packet filtering enabled
|
||||
**********************************************************************/
|
||||
|
||||
check_filter(buffer) u_char *buffer;
|
||||
int check_filter(u_char *buffer)
|
||||
{
|
||||
/* broadcast packets */
|
||||
if (ether_addr_equal(buffer, broadcast)) switch (((short *)buffer)[6]) {
|
||||
@@ -586,10 +586,7 @@ check_filter(buffer) u_char *buffer;
|
||||
* Also believed obsolete
|
||||
**********************************************************************/
|
||||
|
||||
ether_addr_equal(add1, add2)
|
||||
|
||||
u_char add1[],
|
||||
add2[];
|
||||
int ether_addr_equal(u_char add1[], u_char add2[])
|
||||
{
|
||||
register int i;
|
||||
for (i = 0; i < 6; i++)
|
||||
@@ -601,7 +598,7 @@ ether_addr_equal(add1, add2)
|
||||
* init_uid()
|
||||
* sets effective user-id to real user-id
|
||||
**********************************************************************/
|
||||
init_uid() {
|
||||
void init_uid() {
|
||||
#ifndef NOETHER
|
||||
int rid;
|
||||
rid = getuid();
|
||||
@@ -617,7 +614,7 @@ init_uid() {
|
||||
/* */
|
||||
/************************************************************************/
|
||||
|
||||
init_ifpage_ether() {
|
||||
void init_ifpage_ether() {
|
||||
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]);
|
||||
@@ -635,7 +632,7 @@ struct sockaddr_nit snit;
|
||||
/* open nit socket, called from main before starting BCE. */
|
||||
/* */
|
||||
/************************************************************************/
|
||||
init_ether() {
|
||||
void init_ether() {
|
||||
#ifndef NOETHER
|
||||
|
||||
/* JRB - This code will have to be a bit different for SUN 4.0; the probable
|
||||
@@ -882,7 +879,7 @@ if (ether_fd >= 0) {
|
||||
/* */
|
||||
/************************************************************************/
|
||||
|
||||
check_sum(args) register LispPTR *args;
|
||||
LispPTR check_sum(LispPTR *args)
|
||||
{
|
||||
register LispPTR checksum;
|
||||
register DLword *address;
|
||||
|
||||
Reference in New Issue
Block a user