endian-fixes-20060802
[openafs.git] / src / afs / afs_util.c
index 54e8ce3..5fe5327 100644 (file)
@@ -561,7 +561,7 @@ calc (struct afs_md5 *m, afs_uint32 *data)
  * From `Performance analysis of MD5' by Joseph D. Touch <touch@isi.edu>
  */
 
-#if defined(AFSBIG_ENDIAN)
+#if defined(WORDS_BIGENDIAN)
 static inline afs_uint32
 swap_u_int32_t (afs_uint32 t)
 {
@@ -599,15 +599,15 @@ AFS_MD5_Update (struct afs_md5 *m, const void *v, size_t len)
        p += l;
        len -= l;
        if(offset == 64){
-#if defined(AFSBIG_ENDIAN)
+#if defined(WORDS_BIGENDIAN)
            int i;
-           afs_uint32 current[16];
+           afs_uint32 temp[16];
            struct x32 *us = (struct x32*)m->save;
            for(i = 0; i < 8; i++){
-               current[2*i+0] = swap_u_int32_t(us[i].a);
-               current[2*i+1] = swap_u_int32_t(us[i].b);
+               temp[2*i+0] = swap_u_int32_t(us[i].a);
+               temp[2*i+1] = swap_u_int32_t(us[i].b);
            }
-           calc(m, current);
+           calc(m, temp);
 #else
            calc(m, (afs_uint32*)m->save);
 #endif