diff options
author | schnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f> | 2008-03-03 21:24:10 +0000 |
---|---|---|
committer | schnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f> | 2008-03-03 21:24:10 +0000 |
commit | 5dc6bf5dbaee733d856efe3a1a19b9dc14341296 (patch) | |
tree | 871d656a9576eeaa663c37aa054775ad585165ed /src/id.cc | |
parent | 0120ee1f037154a81bd13e9b7dde775c65fdeb7e (diff) |
Declare the build id etc. as "char const *" instead of "char[]".
Add and commit to the git repository in a perl script instead of
directly in the Makefile.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/Formaline/trunk@164 83718e91-0e4f-0410-abf4-91180603181f
Diffstat (limited to 'src/id.cc')
-rw-r--r-- | src/id.cc | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -43,13 +43,13 @@ namespace Formaline // Configuration ID - extern "C" char const config_id[]; + extern "C" char const * const config_id; // Unique source tree ID - extern "C" char const source_id[]; + extern "C" char const * const source_id; // Unique build ID - extern "C" char const build_id[]; + extern "C" char const * const build_id; @@ -131,7 +131,7 @@ namespace Formaline ostringstream run_idbuf; run_idbuf << "run-"; - char cparfilename [10000]; + char cparfilename [1000]; CCTK_ParameterFilename (sizeof cparfilename, cparfilename); string parfilename (cparfilename); size_t const last_slash = parfilename.rfind ('/'); |