mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 03:50:57 +01:00
fixed libtools portability bug, fixed arc4random() portability,
fixed htobe32 and be32toh portability, fixed error handling in main(), fixed invalid type parameter for randomart image in pcppubkey_printshortinfo(), fixed configure search for libsodium.
This commit is contained in:
@@ -9,7 +9,7 @@ void usage() {
|
||||
}
|
||||
|
||||
void version() {
|
||||
fprintf(stderr, "pcp version %d.%d.%d\n",
|
||||
fprintf(stderr, "pcp version %d.%d.%d, use --help to learn how to use.\n",
|
||||
PCP_VERSION_MAJOR, PCP_VERSION_MINOR, PCP_VERSION_PATCH);
|
||||
exit(0);
|
||||
}
|
||||
@@ -168,6 +168,11 @@ int main (int argc, char **argv) {
|
||||
argv += optind;
|
||||
|
||||
|
||||
if(mode == 0) {
|
||||
version();
|
||||
return 1;
|
||||
}
|
||||
|
||||
if(usevault == 1) {
|
||||
pcp_inithashes();
|
||||
vault = pcpvault_init(vaultfile);
|
||||
@@ -327,7 +332,7 @@ int main (int argc, char **argv) {
|
||||
|
||||
default:
|
||||
// mode params mixed
|
||||
fatal("Sorry, invalid combinatin of commandline parameters!\n");
|
||||
fatal("Sorry, invalid combination of commandline parameters!\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user