AFPBridge/atipmapping.h
Stephen Heumann 1bd953dd40 Fix memory trashing bug.
This occurred because a global with structure type was declared without the structure definition in scope. ORCA/C allows this, and just treats the struct variable as having size 0. As a result, it effectively shares the storage of whatever comes after it in the OMF file, leading to memory trashing.
2017-04-02 00:55:27 -05:00

20 lines
343 B
C

#ifndef ATIPMAPPING_H
#define ATIPMAPPING_H
#include <types.h>
typedef struct ATIPMapping {
/* AppleTalk address/socket */
Word networkNumber; /* in network byte order */
Byte node;
Byte socket;
/* IP address/port */
LongWord ipAddr;
Word port;
} ATIPMapping;
extern struct ATIPMapping atipMapping;
#endif