1
0
Fork 0

src/ATC/trafficcontrol.cxx: fix some minor warnings.

This commit is contained in:
Julian Smith 2020-06-14 18:14:19 +01:00
parent 778c81a9b5
commit 6007327da9

View file

@ -84,7 +84,7 @@ TrafficVectorIterator searchActiveTraffic(TrafficVector& vec, int id)
*/
time_t ActiveRunway::requestTimeSlot(time_t eta)
{
time_t newEta;
time_t newEta = 0;
// default separation - 60 seconds
time_t separation = 60;
//if (wakeCategory == "heavy_jet") {
@ -870,7 +870,7 @@ string FGATCController::genTransponderCode(const string& fltRules)
return string("1200");
} else {
char buffer[5];
snprintf(buffer, 5, "%d%d%d%d", rand() % 8, rand() % 8, rand() % 8,
snprintf(buffer, sizeof(buffer), "%d%d%d%d", rand() % 8, rand() % 8, rand() % 8,
rand() % 8);
return string(buffer);
}