mirror of
https://github.com/tihmstar/futurerestore.git
synced 2025-01-02 19:25:31 +00:00
works RC1
This commit is contained in:
parent
56aab40cf2
commit
33aa526e3a
|
@ -48,7 +48,7 @@ using namespace std;
|
||||||
int main(int argc, const char * argv[]) {
|
int main(int argc, const char * argv[]) {
|
||||||
#define reterror(code,a ...) do {error(a); err = code; goto error;} while (0)
|
#define reterror(code,a ...) do {error(a); err = code; goto error;} while (0)
|
||||||
int err=0;
|
int err=0;
|
||||||
int res = 0;
|
int res = -1;
|
||||||
|
|
||||||
int optindex = 0;
|
int optindex = 0;
|
||||||
int opt = 0;
|
int opt = 0;
|
||||||
|
@ -159,8 +159,8 @@ int main(int argc, const char * argv[]) {
|
||||||
err = error;
|
err = error;
|
||||||
}
|
}
|
||||||
|
|
||||||
cout << "Done: restoring "<< (res ? "succeeded" : "failed");
|
cout << "Done: restoring "<< (!res ? "succeeded" : "failed");
|
||||||
if (!res) cout << ". Errorcode="<<err;
|
if (res) cout << ". Errorcode="<<err;
|
||||||
cout<<endl;
|
cout<<endl;
|
||||||
error:
|
error:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue