Rename current to SHA1current
authorSimon Wilkinson <sxw@your-file-system.com>
Tue, 14 Sep 2010 17:24:43 +0000 (10:24 -0700)
committerLove Hornquist Astrand <lha@h5l.org>
Tue, 14 Sep 2010 17:24:43 +0000 (10:24 -0700)
Some kernels define 'current' as a #define. This causes chaos when
we try to build sha.c. So, rename current as 'SHA1current', and avoid
the insanity.

lib/hcrypto/sha.c

index 39c53b0a5a50f101760801b40a4ec34c16c28f42..9c8b39e2419006ad51b7bfef27ffaa54294ac32a 100644 (file)
@@ -240,13 +240,13 @@ SHA1_Update (struct sha *m, const void *v, size_t len)
     if(offset == 64){
 #if !defined(WORDS_BIGENDIAN) || defined(_CRAY)
       int i;
-      uint32_t current[16];
+      uint32_t SHA1current[16];
       struct x32 *us = (struct x32*)m->save;
       for(i = 0; i < 8; i++){
-       current[2*i+0] = swap_uint32_t(us[i].a);
-       current[2*i+1] = swap_uint32_t(us[i].b);
+       SHA1current[2*i+0] = swap_uint32_t(us[i].a);
+       SHA1current[2*i+1] = swap_uint32_t(us[i].b);
       }
-      calc(m, current);
+      calc(m, SHA1current);
 #else
       calc(m, (uint32_t*)m->save);
 #endif