From 80fe6e05ba323986ceb67313fe9794734e388d6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vedran=20Mileti=C4=87?= Date: Tue, 26 Mar 2013 22:11:05 +0100 Subject: [PATCH] Remove C headers and replace them by C++ headers if actually used --- examples/matrix-topology/matrix-topology.cc | 1 - examples/tcp/tcp-large-transfer.cc | 3 --- examples/tcp/tcp-nsc-lfn.cc | 2 -- examples/wireless/ofdm-validation.cc | 6 +++--- 4 files changed, 3 insertions(+), 9 deletions(-) diff --git a/examples/matrix-topology/matrix-topology.cc b/examples/matrix-topology/matrix-topology.cc index a31ebb9af..e6b6004bb 100644 --- a/examples/matrix-topology/matrix-topology.cc +++ b/examples/matrix-topology/matrix-topology.cc @@ -44,7 +44,6 @@ #include #include #include -#include #include "ns3/core-module.h" #include "ns3/network-module.h" diff --git a/examples/tcp/tcp-large-transfer.cc b/examples/tcp/tcp-large-transfer.cc index 8e5378acd..5d0c7add0 100644 --- a/examples/tcp/tcp-large-transfer.cc +++ b/examples/tcp/tcp-large-transfer.cc @@ -29,12 +29,9 @@ // numbers respectively // Usage (e.g.): ./waf --run tcp-large-transfer - -#include #include #include #include -#include #include "ns3/core-module.h" #include "ns3/applications-module.h" diff --git a/examples/tcp/tcp-nsc-lfn.cc b/examples/tcp/tcp-nsc-lfn.cc index a01b4cdf9..f3cfc0d7a 100644 --- a/examples/tcp/tcp-nsc-lfn.cc +++ b/examples/tcp/tcp-nsc-lfn.cc @@ -26,11 +26,9 @@ // - pcap traces generated as tcp-nsc-lfn-0-0.pcap and tcp-nsc-lfn-1-0.pcap // Usage (e.g.): ./waf --run 'tcp-nsc-lfn --TCP_CONGESTION=hybla --runtime=30' -#include #include #include #include -#include #include "ns3/core-module.h" #include "ns3/network-module.h" diff --git a/examples/wireless/ofdm-validation.cc b/examples/wireless/ofdm-validation.cc index 02c22c289..edc128b61 100644 --- a/examples/wireless/ofdm-validation.cc +++ b/examples/wireless/ofdm-validation.cc @@ -24,7 +24,7 @@ #include #include -#include +#include using namespace ns3; @@ -62,9 +62,9 @@ int main (int argc, char *argv[]) for (double snr = -5.0; snr <= 30.0; snr += 0.1) { - double ps = yans->GetChunkSuccessRate (WifiMode (modes[i]), pow (10.0,snr/10.0), FrameSize*8); + double ps = yans->GetChunkSuccessRate (WifiMode (modes[i]), std::pow (10.0,snr/10.0), FrameSize*8); yansdataset.Add (snr, ps); - ps = nist->GetChunkSuccessRate (WifiMode (modes[i]), pow (10.0,snr/10.0), FrameSize*8); + ps = nist->GetChunkSuccessRate (WifiMode (modes[i]), std::pow (10.0,snr/10.0), FrameSize*8); nistdataset.Add (snr, ps); }