projects
/
profile
/
ivi
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a79064c
)
Static variable is now const.
32/2832/1
author
David Galeano
<davidgaleano@turbulenz.biz>
Wed, 9 Jan 2013 07:14:31 +0000
(15:14 +0800)
committer
Kevron Rees
<kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:21 +0000
(13:01 -0800)
lib/sha-1.c
patch
|
blob
|
history
diff --git
a/lib/sha-1.c
b/lib/sha-1.c
index
f30f3ed
..
6020c22
100644
(file)
--- a/
lib/sha-1.c
+++ b/
lib/sha-1.c
@@
-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)))