1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

Static variable is now const.

This commit is contained in:
David Galeano 2013-01-09 15:14:31 +08:00 committed by Andy Green
parent 788c4a8fa8
commit d3ce131a78

View 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)))