X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gostsum.c;h=aed2a478f7a6aeb5c3dc55c731d463c7a75bf225;hb=refs%2Fheads%2Fopenssl_1_1_0_release1;hp=02d56881a32b99658ca3fdd0a3dce951d1c05f0d;hpb=13dcbd17f3c370a7005459e1b2e6470b0262d844;p=openssl-gost%2Fengine.git 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");