Static variable is now const. 32/2832/1
authorDavid Galeano <davidgaleano@turbulenz.biz>
Wed, 9 Jan 2013 07:14:31 +0000 (15:14 +0800)
committerKevron Rees <kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:21 +0000 (13:01 -0800)
lib/sha-1.c

index f30f3ed..6020c22 100644 (file)
@@ -92,7 +92,8 @@ struct sha1_ctxt {
 #ifndef unsupported
 
 /* constant table */
-static unsigned int _K[] = { 0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6 };
+static const unsigned int _K[] =
+                       { 0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6 };
 #define        K(t)    _K[(t) / 20]
 
 #define        F0(b, c, d)     (((b) & (c)) | ((~(b)) & (d)))