Permalink
Browse files

fix gcc warning

  • Loading branch information...
floe committed Jun 12, 2013
1 parent 31979bb commit 1bb5a26458564c352457f7cc7e274d9af9a35b39
Showing with 2 additions and 2 deletions.
  1. +2 −2 calibd/Calibration.cc
View
@@ -19,11 +19,11 @@
Calibration::Calibration( int v ): verbose(v) {
#ifndef _MSC_VER
- char* homedir = getenv( "HOME" );
+ const char* homedir = getenv( "HOME" );
if (!homedir) homedir = "/tmp";
name = std::string( homedir ) + "/.tisch.calib";
#else
- char* homedir = getenv( "TEMP" );
+ const char* homedir = getenv( "TEMP" );
if (!homedir) homedir = "c:\\windows\\temp";
name = std::string( homedir ) + "\\.tisch.calib";
#endif

0 comments on commit 1bb5a26

Please sign in to comment.