aboutsummaryrefslogtreecommitdiff
path: root/md5sum.c
diff options
context:
space:
mode:
Diffstat (limited to 'md5sum.c')
-rw-r--r--md5sum.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/md5sum.c b/md5sum.c
index 3458f2e05..ad4078040 100644
--- a/md5sum.c
+++ b/md5sum.c
@@ -91,7 +91,7 @@
91 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 91 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
92 92
93#ifndef _MD5_H 93#ifndef _MD5_H
94#define _MD5_H 1 94static const int _MD5_H = 1;
95 95
96#include <stdio.h> 96#include <stdio.h>
97 97
@@ -251,7 +251,7 @@ void *md5_finish_ctx(struct md5_ctx *ctx, void *resbuf)
251int md5_stream(FILE *stream, void *resblock) 251int md5_stream(FILE *stream, void *resblock)
252{ 252{
253 /* Important: BLOCKSIZE must be a multiple of 64. */ 253 /* Important: BLOCKSIZE must be a multiple of 64. */
254#define BLOCKSIZE 4096 254static const int BLOCKSIZE = 4096;
255 struct md5_ctx ctx; 255 struct md5_ctx ctx;
256 char buffer[BLOCKSIZE + 72]; 256 char buffer[BLOCKSIZE + 72];
257 size_t sum; 257 size_t sum;
@@ -529,7 +529,7 @@ void md5_process_block(const void *buffer, size_t len, struct md5_ctx *ctx)
529/* The minimum length of a valid digest line in a file produced 529/* The minimum length of a valid digest line in a file produced
530 by `md5sum FILE' and read by `md5sum -c'. This length does 530 by `md5sum FILE' and read by `md5sum -c'. This length does
531 not include any newline character at the end of a line. */ 531 not include any newline character at the end of a line. */
532#define MIN_DIGEST_LINE_LENGTH 35 /* 32 - message digest length 532static const int MIN_DIGEST_LINE_LENGTH = 35; /* 32 - message digest length
533 2 - blank and binary indicator 533 2 - blank and binary indicator
534 1 - minimum filename length */ 534 1 - minimum filename length */
535 535