example: Add missing return 0 in multiple examples

This commit is contained in:
Eduardo Almeida
2022-09-19 18:03:29 +01:00
parent fdc8123237
commit 5b9bb7ad26
41 changed files with 83 additions and 4 deletions

View File

@@ -176,4 +176,6 @@ main (int argc, char *argv[])
Simulator::Run ();
Simulator::Destroy ();
NS_LOG_INFO ("Done.");
return 0;
}

View File

@@ -157,4 +157,6 @@ main (int argc, char **argv)
Simulator::Run ();
Simulator::Destroy ();
NS_LOG_INFO ("Done.");
return 0;
}

View File

@@ -120,5 +120,7 @@ int main (int argc, char** argv)
Simulator::Run ();
Simulator::Destroy ();
NS_LOG_INFO ("Done.");
return 0;
}

View File

@@ -117,5 +117,7 @@ int main (int argc, char** argv)
Simulator::Run ();
Simulator::Destroy ();
NS_LOG_INFO ("Done.");
return 0;
}

View File

@@ -139,5 +139,7 @@ int main (int argc, char **argv)
Simulator::Run ();
Simulator::Destroy ();
NS_LOG_INFO ("Done.");
return 0;
}

View File

@@ -182,5 +182,7 @@ int main (int argc, char **argv)
Simulator::Run ();
Simulator::Destroy ();
NS_LOG_INFO ("Done.");
return 0;
}

View File

@@ -90,9 +90,9 @@ int main (int argc, char **argv)
Ping6Helper ping6;
/*
ping6.SetLocal (i.GetAddress (0, 1));
ping6.SetRemote (i.GetAddress (1, 1));
*/
ping6.SetLocal (i.GetAddress (0, 1));
ping6.SetRemote (i.GetAddress (1, 1));
*/
ping6.SetIfIndex (i.GetInterfaceIndex (0));
ping6.SetRemote (Ipv6Address::GetAllNodesMulticast ());
@@ -111,5 +111,6 @@ int main (int argc, char **argv)
Simulator::Run ();
Simulator::Destroy ();
NS_LOG_INFO ("Done.");
}
return 0;
}

View File

@@ -221,5 +221,7 @@ int main (int argc, char** argv)
Simulator::Run ();
Simulator::Destroy ();
NS_LOG_INFO ("Done.");
return 0;
}

View File

@@ -152,5 +152,7 @@ int main (int argc, char** argv)
Simulator::Run ();
Simulator::Destroy ();
NS_LOG_INFO ("Done.");
return 0;
}

View File

@@ -66,5 +66,7 @@ main (int argc, char *argv[])
Ipv6Address ipv6address = Ipv6Address::MakeAutoconfiguredAddress (m_addresses[i], prefix2);
NS_LOG_INFO ("address = " << ipv6address);
}
return 0;
}

View File

@@ -137,5 +137,7 @@ int main (int argc, char **argv)
Simulator::Run ();
Simulator::Destroy ();
NS_LOG_INFO ("Done.");
return 0;
}

View File

@@ -219,4 +219,6 @@ main (int argc, char *argv[])
std::cerr << "Program internal checking failed; returning with error" << std::endl;
return (1);
}
return 0;
}

View File

@@ -118,4 +118,6 @@ main (int argc, char *argv[])
Simulator::Run ();
Simulator::Destroy ();
NS_LOG_INFO ("Done.");
return 0;
}

View File

@@ -223,4 +223,6 @@ main (int argc, char *argv[])
Simulator::Run ();
Simulator::Destroy ();
NS_LOG_INFO ("Done.");
return 0;
}

View File

@@ -807,4 +807,5 @@ main (int argc, char *argv[])
Simulator::Destroy ();
NS_LOG_INFO ("Done.");
return 0;
}

View File

@@ -246,6 +246,8 @@ main (int argc, char *argv[])
double txp = 7.5;
experiment.Run (nSinks, txp, CSVfileName);
return 0;
}
void

View File

@@ -132,4 +132,6 @@ main (int argc, char *argv[])
Simulator::Run ();
Simulator::Destroy ();
NS_LOG_INFO ("Done.");
return 0;
}

View File

@@ -254,5 +254,7 @@ int main (int argc, char **argv)
Simulator::Run ();
Simulator::Destroy ();
NS_LOG_INFO ("Done.");
return 0;
}

View File

@@ -266,5 +266,7 @@ int main (int argc, char **argv)
Simulator::Run ();
Simulator::Destroy ();
NS_LOG_INFO ("Done.");
return 0;
}

View File

@@ -163,5 +163,7 @@ int main (int argc, char** argv)
Simulator::Run ();
Simulator::Destroy ();
NS_LOG_INFO ("Done.");
return 0;
}

View File

@@ -155,4 +155,6 @@ main (int argc, char *argv[])
Simulator::Run ();
Simulator::Destroy ();
NS_LOG_INFO ("Done.");
return 0;
}

View File

@@ -154,4 +154,6 @@ main (int argc, char *argv[])
Simulator::Run ();
Simulator::Destroy ();
NS_LOG_INFO ("Done.");
return 0;
}

View File

@@ -133,4 +133,6 @@ main (int argc, char *argv[])
Ptr<PacketSink> sink1 = DynamicCast<PacketSink> (sinkApps.Get (0));
std::cout << "Total Bytes Received: " << sink1->GetTotalRx () << std::endl;
return 0;
}

View File

@@ -199,6 +199,8 @@ int main (int argc, char *argv[])
Simulator::Stop (Seconds (1000));
Simulator::Run ();
Simulator::Destroy ();
return 0;
}

View File

@@ -326,4 +326,6 @@ main (int argc, char *argv[])
pacingRateStream.close ();
ssThreshStream.close ();
Simulator::Destroy ();
return 0;
}

View File

@@ -156,4 +156,6 @@ main (int argc, char *argv[])
Ptr<PacketSink> sink1 = DynamicCast<PacketSink> (sinkApps.Get (0));
std::cout << "Total Bytes Received: " << sink1->GetTotalRx () << std::endl;
return 0;
}

View File

@@ -1055,5 +1055,7 @@ main (int argc, char *argv[])
{
NS_FATAL_ERROR ("Validation failed");
}
return 0;
}

View File

@@ -65,4 +65,6 @@ main (int argc, char *argv[])
myObject->TraceConnectWithoutContext ("MyInteger", MakeCallback (&IntTrace));
myObject->m_myInt = 1234;
return 0;
}

View File

@@ -24,4 +24,5 @@ int
main (int argc, char *argv[])
{
NS_LOG_UNCOND ("Hello Simulator");
return 0;
}

View File

@@ -112,4 +112,6 @@ main (int argc, char *argv[])
Simulator::Run ();
Simulator::Destroy ();
NS_LOG_INFO ("Done.");
return 0;
}

View File

@@ -107,4 +107,6 @@ main (int argc, char *argv[])
Simulator::Run ();
Simulator::Destroy ();
NS_LOG_INFO ("Done.");
return 0;
}

View File

@@ -145,4 +145,6 @@ main (int argc, char *argv[])
Simulator::Run ();
Simulator::Destroy ();
NS_LOG_INFO ("Done.");
return 0;
}

View File

@@ -423,4 +423,6 @@ main (int argc, char *argv[])
Simulator::Stop (Seconds (stopTime));
Simulator::Run ();
Simulator::Destroy ();
return 0;
}

View File

@@ -111,4 +111,6 @@ set style line 8 linewidth 5\n\
set style increment user" );
plot.GenerateOutput (file);
file.close ();
return 0;
}

View File

@@ -165,4 +165,6 @@ set yrange [0.0001:1]\n";
plot.GenerateOutput (errormodelfile);
errormodelfile.close ();
return 0;
}

View File

@@ -138,4 +138,6 @@ set yrange [0:1]\n";
tableplot.SetExtra (plotExtra.str ());
tableplot.GenerateOutput (tablefile);
tablefile.close ();
return 0;
}

View File

@@ -167,4 +167,6 @@ set style increment user");
tableplot.GenerateOutput (tablefile);
tablefile.close ();
return 0;
}

View File

@@ -152,4 +152,6 @@ set style increment user");
tableplot.GenerateOutput (tablefile);
tablefile.close ();
return 0;
}

View File

@@ -153,4 +153,6 @@ set style increment user");
tableplot.GenerateOutput (tablefile);
tablefile.close ();
return 0;
}

View File

@@ -156,4 +156,6 @@ set style increment user");
tableplot.GenerateOutput (tablefile);
tablefile.close ();
return 0;
}

View File

@@ -196,4 +196,6 @@ int main (int argc, char *argv[])
Simulator::Stop (Seconds (5.0));
Simulator::Run ();
Simulator::Destroy ();
return 0;
}