summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraaron <aaron@7b491191-dbf0-0310-aff6-d879d4d69008>2004-03-06 23:49:39 +0000
committeraaron <aaron@7b491191-dbf0-0310-aff6-d879d4d69008>2004-03-06 23:49:39 +0000
commitc72ff8d2f99b262d1c13b35931ef7d51d878c7db (patch)
tree64c17e80a3ddcc18bea27c41cb02ff634a15c0f7
parent632de220a7ee9f305b9ab76febee95cbdb9396e2 (diff)
Fixed incorrect assumptions about 32 bit integer sizes.
git-svn-id: https://svn.ic-s.nl/svn/dbmail/trunk/dbmail@996 7b491191-dbf0-0310-aff6-d879d4d69008
-rw-r--r--ChangeLog4
-rw-r--r--md5.h7
2 files changed, 7 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 8ed7de9a..04a65e50 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-03-06 Aaron Stone <aaron@serendipity.cx>
+ * md5.h: removed an old hack that actually broke 32 bit assumptions
+ by making wrong assumptions (they may have been correct circa 1993).
+
2004-03-05 Ilja Booij <ilja@ic-s.nl>
* auth/authsql.c (auth_check_user_ext): uses lower(alias) to find
diff --git a/md5.h b/md5.h
index c684b629..e0aa3e17 100644
--- a/md5.h
+++ b/md5.h
@@ -26,11 +26,10 @@
#include "config.h"
#endif
-#ifdef __alpha
+/* FIXME: Perhaps there should be an AC_CHECK_SIZEOF
+ * in the configure script to ensure that this is really
+ * 32 bits / 4 bytes long... */
typedef unsigned int uint32;
-#else
-typedef unsigned long uint32;
-#endif
struct GdmMD5Context {
uint32 buf[4];