src/ATC/trafficcontrol.cxx: fix some minor warnings.
This commit is contained in:
parent
778c81a9b5
commit
6007327da9
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue