summaryrefslogtreecommitdiff
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
parent4157054167bd99185709da22b84b0d6eebc91999 (diff)
downloadcoreutils-bd17f9b9e1eab8c3c72e169b5348db165f24c159.tar.xz
Use `#error' rather than a string literal to provoke failure.
-rw-r--r--lib/md5.c5
-rw-r--r--lib/sha1.c5
2 files changed, 4 insertions, 6 deletions
diff --git a/lib/md5.c b/lib/md5.c
index 1646676f4..5eed35944 100644
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -1,6 +1,6 @@
/* md5.c - Functions to compute MD5 message digest of files or memory blocks
according to the definition of MD5 in RFC 1321 from April 1992.
- Copyright (C) 1995, 1996, 2001, 2003, 2004 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
NOTE: The canonical source of this file is maintained with the GNU C
Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu.
@@ -59,8 +59,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
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