]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE12-des-fix-linux-64bit-problems-more-usefully-20020607
authorChas Williams <chas@cmf.nrl.navy.mil>
Sat, 8 Jun 2002 01:23:48 +0000 (01:23 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 8 Jun 2002 01:23:48 +0000 (01:23 +0000)
with a minor fix from shadow@dementia.org

long isn't 32bit on ia64 or alpha

(cherry picked from commit ddfc17dfd19dd4e5bf83f42b92c3a25ebd101c59)

src/des/crypt.c

index 96b3797e995b1f7412e5df33bed143ba68e32928..db60d199e4613f8d9ffddf9660dc6357cf3ca208 100644 (file)
@@ -88,7 +88,7 @@ RCSID("$Header$");
  * define "LONG_IS_32_BITS" only if sizeof(long)==4.
  * This avoids use of bit fields (your compiler may be sloppy with them).
  */
-#if !defined(cray)
+#if !defined(cray) && !defined(AFS_ALPHA_LINUX20_ENV) && !defined(AFS_IA64_LINUX20_ENV)
 #define        LONG_IS_32_BITS
 #endif
 
@@ -249,13 +249,8 @@ typedef union {
        struct {
 #if defined(LONG_IS_32_BITS)
                /* long is often faster than a 32-bit bit field */
-#if defined(AFS_IA64_LINUX20_ENV)
-               int     i0;
-               int     i1;
-#else
                long    i0;
                long    i1;
-#endif
 #else
                long    i0: 32;
                long    i1: 32;