]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
solaris10-optimization-20050602
authorChas Williams <chas@cmf.nrl.navy.mil>
Thu, 2 Jun 2005 06:20:23 +0000 (06:20 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 2 Jun 2005 06:20:23 +0000 (06:20 +0000)
FIXES 17262

declare certain things volatile to make solaris compiler less cranky

src/des/des.c
src/rxkad/domestic/fcrypt.c

index b4f7bf6105a9d690ad77e179f65e0b62c29ba6e8..7805611967a5518a75d4b80957ae4d4132f12263 100644 (file)
@@ -92,7 +92,7 @@ des_ecb_encrypt(void * clear, void * cipher,
 #endif
 #endif
     afs_uint32 P_temp;
-    register unsigned char *P_temp_p = (unsigned char *)&P_temp;
+    volatile unsigned char *P_temp_p = (unsigned char *)&P_temp;
 #ifdef BITS16
     sbox_out S_out;
     afs_uint32 *S_out_p = (afs_uint32 *) & S_out;
index ec336a224526f75dd2cdd135e3c5bfe2a6116300..62f6d827895c7f5f1850ac3d6c3125ed0e74453c 100644 (file)
@@ -112,9 +112,9 @@ fc_ecb_encrypt(void * clear, void * cipher,
               fc_KeySchedule schedule, int encrypt)
 {
     afs_uint32 L, R;
-    afs_uint32 S, P;
-    unsigned char *Pchar = (unsigned char *)&P;
-    unsigned char *Schar = (unsigned char *)&S;
+    volatile afs_uint32 S, P;
+    volatile unsigned char *Pchar = (unsigned char *)&P;
+    volatile unsigned char *Schar = (unsigned char *)&S;
     int i;
 
 #if defined(vax) || (defined(mips) && defined(MIPSEL)) || defined(AFSLITTLE_ENDIAN)