src/netanim/model/animation-interface.cc
changeset 9063 32755d0516f4
parent 9012 e1353799d7c6
child 9064 21326214dcd5
--- a/src/netanim/model/animation-interface.cc	Fri Aug 31 12:24:28 2012 +0200
+++ b/src/netanim/model/animation-interface.cc	Sat Sep 01 20:57:21 2012 +0200
@@ -40,7 +40,7 @@
 #include "ns3/uan-mac.h"
 #include "ns3/ipv4.h"
 
-#include <stdio.h>
+#include <cstdio>
 #include <unistd.h>
 #include <sstream>
 #include <fstream>
@@ -125,7 +125,7 @@
       return true;
     }
   NS_LOG_INFO ("Creating new trace file:" << fn.c_str ());
-  m_f = fopen (fn.c_str (), "w");
+  m_f = std::fopen (fn.c_str (), "w");
   if (!m_f)
     {
       NS_FATAL_ERROR ("Unable to open Animation output file");
@@ -607,7 +607,7 @@
         { // Terminate the anim element
           WriteN (GetXMLClose ("anim"));
         }
-          fclose (m_f);
+      std::fclose (m_f);
     }
     m_outputFileSet = false;
 }
@@ -692,7 +692,7 @@
   uint32_t    written = 0;
   while (nLeft)
     {
-      int n = fwrite (p, 1,  nLeft, m_f);
+      int n = std::fwrite (p, 1,  nLeft, m_f);
       if (n <= 0) 
         {
           return written;