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:
parent
8774d78d46
commit
868fa76d23
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue