works RC1

This commit is contained in:
tihmstar 2016-09-15 14:51:25 +02:00
parent 56aab40cf2
commit 33aa526e3a

View file

@ -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: