mirror of
https://github.com/sheumann/AFPBridge.git
synced 2024-06-07 00:29:28 +00:00
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.
This commit is contained in:
parent
9720f37531
commit
1bd953dd40
|
@ -1,3 +1,5 @@
|
||||||
#pragma noroot
|
#pragma noroot
|
||||||
|
|
||||||
|
#include "atipmapping.h"
|
||||||
|
|
||||||
struct ATIPMapping atipMapping;
|
struct ATIPMapping atipMapping;
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#ifndef ATIPMAPPING_H
|
#ifndef ATIPMAPPING_H
|
||||||
#define ATIPMAPPING_H
|
#define ATIPMAPPING_H
|
||||||
|
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
typedef struct ATIPMapping {
|
typedef struct ATIPMapping {
|
||||||
/* AppleTalk address/socket */
|
/* AppleTalk address/socket */
|
||||||
Word networkNumber; /* in network byte order */
|
Word networkNumber; /* in network byte order */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user