Chkpt: Fix a const-correctness warning
authorPhil Miller <mille121@illinois.edu>
Mon, 7 Mar 2011 02:32:22 +0000 (20:32 -0600)
committerPhil Miller <mille121@illinois.edu>
Mon, 7 Mar 2011 02:32:37 +0000 (20:32 -0600)
src/ck-core/ckcheckpoint.C
src/ck-core/ckcheckpoint.h

index 2728c9fb75ad4d7a798e918f87299097925ebfec..2b8888ee3fb97c5c67d95ae1e9413e91cb9baa65 100644 (file)
@@ -645,12 +645,12 @@ void CkTestArrayElements()
 }
 */
 
-void CkStartCheckpoint(char* dirname,const CkCallback& cb)
+void CkStartCheckpoint(const char* dirname,const CkCallback& cb)
 {
        CkPrintf("[%d] Checkpoint starting in %s\n", CkMyPe(), dirname);
        
        // hand over to checkpoint managers for per-processor checkpointing
-       CProxy_CkCheckpointMgr(_sysChkptMgr).Checkpoint((char *)dirname, cb);
+       CProxy_CkCheckpointMgr(_sysChkptMgr).Checkpoint(dirname, cb);
 }
 
 /**
index 8532d7a842201c404be200dedb7cd6a7f0254178..7c8203a93b55c7a23affc005051668213060dfb8 100644 (file)
@@ -72,7 +72,7 @@ void CkPupProcessorData(PUP::er &p);
 void CkRemoveArrayElements();
 //void CkTestArrayElements();
 
-void CkStartCheckpoint(char* dirname,const CkCallback& cb);
+void CkStartCheckpoint(const char* dirname,const CkCallback& cb);
 void CkRestartMain(const char* dirname, CkArgMsg *args);
 #if (defined(_FAULT_MLOG_) || defined(_FAULT_CAUSAL_))
 int  CkCountArrayElements();