fixed compiler warnings and errors

This commit is contained in:
2025-11-20 23:45:47 +01:00
parent 7b697a5e97
commit c5953d152b
6 changed files with 422 additions and 375 deletions

View File

@@ -127,7 +127,6 @@ int main(int argc, char *argv[]) {
string readpass() {
char *pass;
char *envpass;
envpass = getenv(PW_VARNAME);
if(envpass != NULL) {
@@ -136,7 +135,7 @@ string readpass() {
}
else {
#ifdef HAVE_GETPASS
pass = getpass("passphrase: ");
char *pass = getpass("passphrase: ");
string password = pass;
free(pass);
#else