X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost12sum.c;h=f643b8bbf407ac39db738914b9c559cd170ea694;hb=be65ae82130e6908c88b975597d05f128057a287;hp=15e2941f613c9c4ac869eae9a4fe2ea304303814;hpb=9d0a4584f65d09d396e2dd655f7ae390ac64d60e;p=openssl-gost%2Fengine.git diff --git a/gost12sum.c b/gost12sum.c index 15e2941..f643b8b 100644 --- a/gost12sum.c +++ b/gost12sum.c @@ -11,14 +11,14 @@ #include #include #ifdef _MSC_VER -#include "getopt.h" +# include "getopt.h" # ifndef PATH_MAX # define PATH_MAX _MAX_PATH # endif -#include +# include typedef SSIZE_T ssize_t; #else -#include +# include #endif #include #include @@ -224,7 +224,7 @@ int hash_stream(gost_hash_ctx * ctx, int fd, char *sum) { unsigned char buffer[BUF_SIZE]; ssize_t bytes; - size_t i; + size_t i; start_hash12(ctx); while ((bytes = read(fd, buffer, BUF_SIZE)) > 0) { @@ -269,7 +269,7 @@ int get_line(FILE *f, char *hash, char *filename, int verbose) return 1; nextline: if (verbose) - printf("%s\n", filename); + printf("%s\n", filename); } return 0; }