]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/transmissionlist.cxx
Moved random ground cover object management code (userdata.[ch]xx) over
[flightgear.git] / src / ATC / transmissionlist.cxx
index d3b2889ba91ffd1caad1fb75d8a08f260983ab32..28fd431174a6abcd16ae9e0d66d3482f7d7a1b26 100644 (file)
 #  include <config.h>
 #endif
 
-#include <strings.h>   // bcopy()
+#ifdef HAVE_STRINGS_H
+#  include <strings.h>   // bcopy()
+#else
+#  include <string.h>    // MSVC doesn't have strings.h
+#endif
+
 
 #include <simgear/debug/logstream.hxx>
 #include <simgear/misc/sgstream.hxx>
@@ -36,9 +41,6 @@
 
 #include <GUI/gui.h>
 
-static puDialogBox  *ATCMenuBox = 0;
-static puFrame      *ATCMenuFrame = 0;
-static puText       *ATCMenuBoxMessage = 0;
 
 FGTransmissionList *current_transmissionlist;
 
@@ -185,7 +187,7 @@ string FGTransmissionList::gen_text(const int &station, const TransCode code,
   char crej = '@';
   char mes[cmax];
   char dum[cmax];
-  char buf[10];
+  //char buf[10];
   char *pos;
   int len;
   FGTransmission t;
@@ -206,7 +208,7 @@ string FGTransmissionList::gen_text(const int &station, const TransCode code,
       
       while ( strchr(&mes[0], crej) != NULL  ) {
        pos = strchr( &mes[0], crej );
-       bcopy(pos, &tag, 3);
+       bcopy(pos, &tag[0], 3);
        tag[3] = '\0';
        int i;
        len = 0;