From 30bf662eea975372edc214a29d5f653afc998d25 Mon Sep 17 00:00:00 2001 From: barate Date: Tue, 1 Jun 2010 15:54:57 +0000 Subject: [PATCH] Removed warnings with gcc 4.3.2 (thanks to G. David) --- src/Core/Batch_BatchManager_eClient.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Batch_BatchManager_eClient.cxx b/src/Core/Batch_BatchManager_eClient.cxx index 1f92a24..83716f1 100644 --- a/src/Core/Batch_BatchManager_eClient.cxx +++ b/src/Core/Batch_BatchManager_eClient.cxx @@ -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"; -- 2.39.2