aboutsummaryrefslogtreecommitdiff
path: root/gostsum.c
diff options
context:
space:
mode:
authorDmitry Belyavskiy <beldmit@gmail.com>2016-01-02 23:06:56 +0300
committerDmitry Belyavskiy <beldmit@gmail.com>2016-01-02 23:06:56 +0300
commit096f193c98ffbe23686f10c834b2c42092b65954 (patch)
tree209a1ef6c4e57da480a094742248d51c11748fb0 /gostsum.c
parent98a1b3fcae5a4efe29774a96ce860dc52b24549b (diff)
downloadgost-engine-096f193c98ffbe23686f10c834b2c42092b65954.zip
gost-engine-096f193c98ffbe23686f10c834b2c42092b65954.tar.gz
gost-engine-096f193c98ffbe23686f10c834b2c42092b65954.tar.bz2
Formatting fix
Diffstat (limited to 'gostsum.c')
-rw-r--r--gostsum.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gostsum.c b/gostsum.c
index 02d5688..aed2a47 100644
--- a/gostsum.c
+++ b/gostsum.c
@@ -88,8 +88,8 @@ int main(int argc, char **argv)
while (get_line(check_file, inhash, filename)) {
count++;
if (!hash_file(&ctx, filename, calcsum, open_mode)) {
- errors ++;
- continue;
+ errors++;
+ continue;
}
if (strncmp(calcsum, inhash, 65) == 0) {
if (verbose) {
@@ -117,14 +117,14 @@ int main(int argc, char **argv)
"%s: %d of %d file(f) failed GOST hash sum check\n",
argv[0], failcount, count);
}
- exit((failcount || errors)? 1 : 0);
+ exit((failcount || errors) ? 1 : 0);
}
if (optind == argc) {
char sum[65];
#ifdef _WIN32
- if (open_mode & O_BINARY) {
- _setmode(fileno(stdin),O_BINARY);
- }
+ if (open_mode & O_BINARY) {
+ _setmode(fileno(stdin), O_BINARY);
+ }
#endif
if (!hash_stream(&ctx, fileno(stdin), sum)) {
perror("stdin");