summaryrefslogtreecommitdiff
path: root/lib/sha1.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-08-27 16:11:43 +0000
committerJim Meyering <jim@meyering.net>2005-08-27 16:11:43 +0000
commitbd17f9b9e1eab8c3c72e169b5348db165f24c159 (patch)
treed0d42ef16ee46090c07575c850f8cddcd0c40c4d /lib/sha1.c
parent4157054167bd99185709da22b84b0d6eebc91999 (diff)
downloadcoreutils-bd17f9b9e1eab8c3c72e169b5348db165f24c159.tar.xz
Use `#error' rather than a string literal to provoke failure.
Diffstat (limited to 'lib/sha1.c')
-rw-r--r--lib/sha1.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/sha1.c b/lib/sha1.c
index ff025af4a..88e213418 100644
--- a/lib/sha1.c
+++ b/lib/sha1.c
@@ -1,7 +1,7 @@
/* sha1.c - Functions to compute SHA1 message digest of files or
memory blocks according to the NIST specification FIPS-180-1.
- Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
@@ -53,8 +53,7 @@
#define BLOCKSIZE 4096
/* Ensure that BLOCKSIZE is a multiple of 64. */
#if BLOCKSIZE % 64 != 0
-/* FIXME-someday (soon?): use #error instead of this kludge. */
-"invalid BLOCKSIZE"
+# error "invalid BLOCKSIZE"
#endif
/* This array contains the bytes used to pad the buffer to the next