certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

certi/RTIA FederationManagement.cc


From: certi-cvs
Subject: certi/RTIA FederationManagement.cc
Date: Mon, 19 Nov 2007 10:20:53 +0000

CVSROOT:        /sources/certi
Module name:    certi
Changes by:     Eric NOULARD <erk>      07/11/19 10:20:53

Modified files:
        RTIA           : FederationManagement.cc 

Log message:
        Use cstdio 'std::remove' API instead not portable system() API

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/RTIA/FederationManagement.cc?cvsroot=certi&r1=3.35&r2=3.36

Patches:
Index: FederationManagement.cc
===================================================================
RCS file: /sources/certi/certi/RTIA/FederationManagement.cc,v
retrieving revision 3.35
retrieving revision 3.36
diff -u -b -r3.35 -r3.36
--- FederationManagement.cc     16 Nov 2007 15:04:21 -0000      3.35
+++ FederationManagement.cc     19 Nov 2007 10:20:53 -0000      3.36
@@ -18,7 +18,7 @@
 // along with this program ; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 //
-// $Id: FederationManagement.cc,v 3.35 2007/11/16 15:04:21 rousse Exp $
+// $Id: FederationManagement.cc,v 3.36 2007/11/19 10:20:53 erk Exp $
 // ----------------------------------------------------------------------------
 
 #include <config.h>
@@ -212,10 +212,7 @@
             // Now, remove temporary file (if not yet done)
             if ( _FEDid[0] != '\0' )
                 {
-                char removing[MAX_FEDFILE_NAME_LENGTH+3] ;
-                strcpy(removing,"rm ");
-                strcat(removing,_FEDid);
-                system(removing);
+                std::remove(_FEDid);
                 _FEDid[0] = '\0' ;
                 }
         }
@@ -423,10 +420,7 @@
         // Now, remove temporary file (if not yet done)
             if ( _FEDid[0] != '\0' )
                 {
-                char removing[MAX_FEDFILE_NAME_LENGTH+3] ;
-                strcpy(removing,"rm ");
-                strcat(removing,_FEDid);
-                system(removing);
+                std::remove(_FEDid);
                 _FEDid[0] = '\0' ;
                 }
 
@@ -936,4 +930,4 @@
 
 }} // namespace certi/rtia
 
-// $Id: FederationManagement.cc,v 3.35 2007/11/16 15:04:21 rousse Exp $
+// $Id: FederationManagement.cc,v 3.36 2007/11/19 10:20:53 erk Exp $




reply via email to

[Prev in Thread] Current Thread [Next in Thread]