]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
bg-fcrypt-64bit-fix-20070717
authorMarcus Watts <mdw@umich.edu>
Tue, 17 Jul 2007 13:06:47 +0000 (13:06 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 17 Jul 2007 13:06:47 +0000 (13:06 +0000)
instead of this arcane ifdef which is flawed, we know which platforms support 64 bit types...

src/rxkad/bg-fcrypt.c

index 6d9cdd4c8c15ebbe802a0a6f00b2b9f2f71cd9e4..cbaf0eee5b95c74b8ac09fbbd3493e53b9212d70 100644 (file)
@@ -548,7 +548,7 @@ fc_keysched(void *key_, fc_KeySchedule sched)
     const unsigned char *key = key_;
 
     /* Do we have 56 bit longs or even longer longs? */
-#if ((1ul << 31) << 1) && defined(ULONG_MAX) && ((ULONG_MAX >> 55) != 0) && ((1ul << 55) != 0)
+#ifdef AFS_64BIT_ENV
     unsigned long k;           /* k holds all 56 non parity bits */
 
     /* Compress out parity bits */