mirror of
https://github.com/vgough/encfs.git
synced 2025-02-16 09:49:46 +01:00
fix defaultYes/defaultNo functions
git-svn-id: http://encfs.googlecode.com/svn/trunk@29 db9cf616-1c43-0410-9cb8-a902689de0d6
This commit is contained in:
parent
1efb3ad2fa
commit
ba74a77b3d
@ -757,10 +757,10 @@ bool boolDefaultNo(const char *prompt)
|
||||
fgets( answer, sizeof(answer), stdin );
|
||||
cout << "\n";
|
||||
|
||||
if(tolower(answer[0]) == 'n')
|
||||
return false;
|
||||
else
|
||||
if(tolower(answer[0]) == 'y')
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
static
|
||||
@ -817,10 +817,10 @@ bool boolDefaultYes(const char *prompt)
|
||||
fgets( answer, sizeof(answer), stdin );
|
||||
cout << "\n";
|
||||
|
||||
if(tolower(answer[0]) == 'y')
|
||||
return true;
|
||||
else
|
||||
if(tolower(answer[0]) == 'n')
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
static
|
||||
|
Loading…
Reference in New Issue
Block a user