From 4f4e4f4df97afe020ad106ca1ba5747463e9bfa7 Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Wed, 12 Jul 2017 16:10:59 +0200 Subject: [PATCH] minor typos and styles Actually, debian lintian told me that: I: codecrypt: spelling-error-in-manpage usr/share/man/man1/ccr.1.gz overriden overridden Isn't that cute? --- man/ccr.1 | 2 +- src/iohelpers.cpp | 3 +-- src/mce_qcmdpc.cpp | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/man/ccr.1 b/man/ccr.1 index e8552c2..e602022 100644 --- a/man/ccr.1 +++ b/man/ccr.1 @@ -242,7 +242,7 @@ and applying flock(2) to it. For seeding the random number generator, Codecrypt uses data from "/dev/random" for generating keys and "/dev/urandom" for everything else, e.g. nonces or -envelopes. Both cases can be overriden at once by specifying some other +envelopes. Both cases can be overridden at once by specifying some other filename in environment variable CCR_RANDOM_SEED. .SH RETURN VALUE diff --git a/src/iohelpers.cpp b/src/iohelpers.cpp index 8db087e..89acdf9 100644 --- a/src/iohelpers.cpp +++ b/src/iohelpers.cpp @@ -83,7 +83,6 @@ std::string escape_output (const std::string&s) r += "\\x"; r += hex[0xf & (s[i] >> 4)]; r += hex[0xf & s[i]]; - } - else r += s[i]; + } else r += s[i]; return r; } diff --git a/src/mce_qcmdpc.cpp b/src/mce_qcmdpc.cpp index afe1d59..742f920 100644 --- a/src/mce_qcmdpc.cpp +++ b/src/mce_qcmdpc.cpp @@ -289,7 +289,7 @@ int privkey::decrypt (const bvector & in_orig, bvector & out, bvector & errors) unsigned& ref = unsat [b2 * bs - + (hpos + bs - h2) % bs]; + + (hpos + bs - h2) % bs]; if (increase) ++ref; else --ref; }