Commit 13d92a0c authored by Claes Sjofors's avatar Claes Sjofors

Sev repair opendb() argument fix

parent 79497c3e
...@@ -67,6 +67,7 @@ int sev_repair::init() ...@@ -67,6 +67,7 @@ int sev_repair::init()
{ {
sev_dbms_env *env; sev_dbms_env *env;
pwr_tFileName envname; pwr_tFileName envname;
unsigned int rc;
sprintf( envname, "$pwrp_db/%s.db", sev_dbms_env::dbName()); sprintf( envname, "$pwrp_db/%s.db", sev_dbms_env::dbName());
dcli_translate_filename( envname, envname); dcli_translate_filename( envname, envname);
...@@ -78,7 +79,7 @@ int sev_repair::init() ...@@ -78,7 +79,7 @@ int sev_repair::init()
exit(0); exit(0);
} }
if ( !env->openDb()) { if ( !env->openDb( &rc)) {
printf("Failed to connect to database '%s'", sev_dbms_env::dbName()); printf("Failed to connect to database '%s'", sev_dbms_env::dbName());
exit(0); exit(0);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment