1
0
Fork 0

Jeff Taylor:

Fix "unable to open" messages on priorities/usgs files

Systems without write access to priorities or USGS files could not run
fgfs-construct.
This patch fixes that, so that write access to config files is no
longer required.
This commit is contained in:
Ralf Gerlich 2010-06-25 11:04:26 +02:00
parent 8774d78d46
commit 868fa76d23
2 changed files with 4 additions and 4 deletions

View file

@ -31,7 +31,7 @@
#include "priorities.hxx"
using std::fstream;
using std::ifstream;
using std::string;
using std::map;
using std::vector;
@ -61,7 +61,7 @@ static AreaType default_area_type;
static AreaType sliver_target_area_type;
int load_area_types( const std::string& filename ) {
fstream in ( filename.c_str() );
ifstream in ( filename.c_str() );
if ( ! in ) {
SG_LOG(SG_GENERAL, SG_ALERT, "Unable to open file " << filename);

View file

@ -28,14 +28,14 @@
#include "usgs.hxx"
using std::fstream;
using std::ifstream;
using std::string;
using std::vector;
static vector<AreaType> usgs_map;
int load_usgs_map( const std::string& filename ) {
fstream in ( filename.c_str() );
ifstream in ( filename.c_str() );
if ( ! in ) {
SG_LOG(SG_GENERAL, SG_ALERT, "Unable to open file " << filename);