example: Add missing return 0 in multiple examples
This commit is contained in:
@@ -176,4 +176,6 @@ main (int argc, char *argv[])
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
NS_LOG_INFO ("Done.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -157,4 +157,6 @@ main (int argc, char **argv)
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
NS_LOG_INFO ("Done.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -120,5 +120,7 @@ int main (int argc, char** argv)
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
NS_LOG_INFO ("Done.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -117,5 +117,7 @@ int main (int argc, char** argv)
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
NS_LOG_INFO ("Done.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -139,5 +139,7 @@ int main (int argc, char **argv)
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
NS_LOG_INFO ("Done.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -182,5 +182,7 @@ int main (int argc, char **argv)
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
NS_LOG_INFO ("Done.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -221,5 +221,7 @@ int main (int argc, char** argv)
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
NS_LOG_INFO ("Done.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -152,5 +152,7 @@ int main (int argc, char** argv)
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
NS_LOG_INFO ("Done.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -66,5 +66,7 @@ main (int argc, char *argv[])
|
||||
Ipv6Address ipv6address = Ipv6Address::MakeAutoconfiguredAddress (m_addresses[i], prefix2);
|
||||
NS_LOG_INFO ("address = " << ipv6address);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -137,5 +137,7 @@ int main (int argc, char **argv)
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
NS_LOG_INFO ("Done.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -219,4 +219,6 @@ main (int argc, char *argv[])
|
||||
std::cerr << "Program internal checking failed; returning with error" << std::endl;
|
||||
return (1);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -118,4 +118,6 @@ main (int argc, char *argv[])
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
NS_LOG_INFO ("Done.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -223,4 +223,6 @@ main (int argc, char *argv[])
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
NS_LOG_INFO ("Done.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -807,4 +807,5 @@ main (int argc, char *argv[])
|
||||
Simulator::Destroy ();
|
||||
NS_LOG_INFO ("Done.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -246,6 +246,8 @@ main (int argc, char *argv[])
|
||||
double txp = 7.5;
|
||||
|
||||
experiment.Run (nSinks, txp, CSVfileName);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -132,4 +132,6 @@ main (int argc, char *argv[])
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
NS_LOG_INFO ("Done.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -254,5 +254,7 @@ int main (int argc, char **argv)
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
NS_LOG_INFO ("Done.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -266,5 +266,7 @@ int main (int argc, char **argv)
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
NS_LOG_INFO ("Done.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -163,5 +163,7 @@ int main (int argc, char** argv)
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
NS_LOG_INFO ("Done.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -155,4 +155,6 @@ main (int argc, char *argv[])
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
NS_LOG_INFO ("Done.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -154,4 +154,6 @@ main (int argc, char *argv[])
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
NS_LOG_INFO ("Done.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -199,6 +199,8 @@ int main (int argc, char *argv[])
|
||||
Simulator::Stop (Seconds (1000));
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -326,4 +326,6 @@ main (int argc, char *argv[])
|
||||
pacingRateStream.close ();
|
||||
ssThreshStream.close ();
|
||||
Simulator::Destroy ();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -1055,5 +1055,7 @@ main (int argc, char *argv[])
|
||||
{
|
||||
NS_FATAL_ERROR ("Validation failed");
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -65,4 +65,6 @@ main (int argc, char *argv[])
|
||||
myObject->TraceConnectWithoutContext ("MyInteger", MakeCallback (&IntTrace));
|
||||
|
||||
myObject->m_myInt = 1234;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -24,4 +24,5 @@ int
|
||||
main (int argc, char *argv[])
|
||||
{
|
||||
NS_LOG_UNCOND ("Hello Simulator");
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -112,4 +112,6 @@ main (int argc, char *argv[])
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
NS_LOG_INFO ("Done.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -107,4 +107,6 @@ main (int argc, char *argv[])
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
NS_LOG_INFO ("Done.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -145,4 +145,6 @@ main (int argc, char *argv[])
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
NS_LOG_INFO ("Done.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -423,4 +423,6 @@ main (int argc, char *argv[])
|
||||
Simulator::Stop (Seconds (stopTime));
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -111,4 +111,6 @@ set style line 8 linewidth 5\n\
|
||||
set style increment user" );
|
||||
plot.GenerateOutput (file);
|
||||
file.close ();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -165,4 +165,6 @@ set yrange [0.0001:1]\n";
|
||||
|
||||
plot.GenerateOutput (errormodelfile);
|
||||
errormodelfile.close ();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -138,4 +138,6 @@ set yrange [0:1]\n";
|
||||
tableplot.SetExtra (plotExtra.str ());
|
||||
tableplot.GenerateOutput (tablefile);
|
||||
tablefile.close ();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -167,4 +167,6 @@ set style increment user");
|
||||
|
||||
tableplot.GenerateOutput (tablefile);
|
||||
tablefile.close ();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -152,4 +152,6 @@ set style increment user");
|
||||
|
||||
tableplot.GenerateOutput (tablefile);
|
||||
tablefile.close ();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -153,4 +153,6 @@ set style increment user");
|
||||
|
||||
tableplot.GenerateOutput (tablefile);
|
||||
tablefile.close ();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -156,4 +156,6 @@ set style increment user");
|
||||
|
||||
tableplot.GenerateOutput (tablefile);
|
||||
tablefile.close ();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -196,4 +196,6 @@ int main (int argc, char *argv[])
|
||||
Simulator::Stop (Seconds (5.0));
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user