[Liblas-commits] hg-main-tree: blindly cast to char* for unix putenv

liblas-commits at liblas.org liblas-commits at liblas.org
Wed Mar 23 10:56:28 EDT 2011


details:   http://hg.libpc.orghg-main-tree/rev/50bd6887c749
changeset: 394:50bd6887c749
user:      Howard Butler <hobu.inc at gmail.com>
date:      Wed Mar 23 09:56:21 2011 -0500
description:
blindly cast to char* for unix putenv

diffstat:

 src/Utils.cpp |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r b19b24391fd1 -r 50bd6887c749 src/Utils.cpp
--- a/src/Utils.cpp	Tue Mar 22 15:55:30 2011 -0700
+++ b/src/Utils.cpp	Wed Mar 23 09:56:21 2011 -0500
@@ -173,7 +173,7 @@
 #ifdef WIN32
     return ::_putenv(env);
 #else
-    return ::putenv(env);
+    return ::putenv(const_cast<char*>(env));
 #endif
 }
 


More information about the Liblas-commits mailing list