]> SALOME platform Git repositories - tools/libbatch.git/commitdiff
Salome HOME
Removed warnings with gcc 4.3.2 (thanks to G. David)
authorbarate <barate>
Tue, 1 Jun 2010 15:54:57 +0000 (15:54 +0000)
committerbarate <barate>
Tue, 1 Jun 2010 15:54:57 +0000 (15:54 +0000)
src/Core/Batch_BatchManager_eClient.cxx

index 1f92a24915a293b1c5ffacc61bdb509c862548fb..83716f148c00a7ec5a0e5b63a58ccd1b6d9e9bac 100644 (file)
@@ -292,13 +292,13 @@ namespace Batch {
   const std::string & BatchManager_eClient::getTmpDir()
   {
     if (tmpDirName.empty()) {
-      char * baseDir = getenv("TEMP");
+      const char * baseDir = getenv("TEMP");
       if (baseDir == NULL) baseDir = getenv("TMP");
       if (baseDir == NULL) baseDir = getenv("TEMPDIR");
       if (baseDir == NULL) baseDir = getenv("TMPDIR");
       if (baseDir == NULL) baseDir = "/tmp";
 
-      char * userName = getenv("USER");
+      const char * userName = getenv("USER");
       if (userName == NULL) userName = getenv("USERNAME");
       if (userName == NULL) userName = "unknown";