Privatize sardata structs

These duplicated names spanning translation units violate ODR.
They are only used within their corresponding .c files and thus
can be given static linkage.
LT1AB
Ryan Burns 2020-07-09 12:17:26 -07:00
parent 2e44cabf67
commit e751732c0f
2 changed files with 6 additions and 6 deletions

View File

@ -60,9 +60,9 @@ int reset_params(struct PRM *prm, long *, int *, int *);
int fill_shift_data(int, int, int, int, int, char *, char *, FILE *);
int handle_prf_change_ALOSE(struct PRM *, FILE *, long *, int);
struct sardata_record r1;
struct sardata_descriptor_ALOSE dfd;
struct sardata_info_ALOSE sdr;
static struct sardata_record r1;
static struct sardata_descriptor_ALOSE dfd;
static struct sardata_info_ALOSE sdr;
/*
differences in include file from ALOS AUIG

View File

@ -67,9 +67,9 @@ int reset_params(struct PRM *prm, long *, int *, int *);
int fill_shift_data(int, int, int, int, int, char *, char *, FILE *);
int handle_prf_change(struct PRM *, FILE *, long *, int);
struct sardata_record r1;
struct sardata_descriptor dfd;
struct sardata_info sdr;
static struct sardata_record r1;
static struct sardata_descriptor dfd;
static struct sardata_info sdr;
long read_ALOS_data (FILE *imagefile, FILE *outfile, struct PRM *prm, long *byte_offset) {