1
0
Fork 0

Fixed a compile problem that affected gcc-2.95 users on Cygwin and removed a few unused variable warnings

This commit is contained in:
daveluff 2003-03-09 23:04:38 +00:00
parent a32c7d50bb
commit 75e26663bd

View file

@ -36,9 +36,6 @@
#include <GUI/gui.h> #include <GUI/gui.h>
static puDialogBox *ATCMenuBox = 0;
static puFrame *ATCMenuFrame = 0;
static puText *ATCMenuBoxMessage = 0;
FGTransmissionList *current_transmissionlist; FGTransmissionList *current_transmissionlist;
@ -185,7 +182,7 @@ string FGTransmissionList::gen_text(const int &station, const TransCode code,
char crej = '@'; char crej = '@';
char mes[cmax]; char mes[cmax];
char dum[cmax]; char dum[cmax];
char buf[10]; //char buf[10];
char *pos; char *pos;
int len; int len;
FGTransmission t; FGTransmission t;
@ -206,7 +203,7 @@ string FGTransmissionList::gen_text(const int &station, const TransCode code,
while ( strchr(&mes[0], crej) != NULL ) { while ( strchr(&mes[0], crej) != NULL ) {
pos = strchr( &mes[0], crej ); pos = strchr( &mes[0], crej );
bcopy(pos, &tag, 3); bcopy(pos, &tag[0], 3);
tag[3] = '\0'; tag[3] = '\0';
int i; int i;
len = 0; len = 0;