diff options
author | David Benjamin <davidben@chromium.org> | 2014-08-20 03:54:46 +0400 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2014-08-20 06:13:09 +0400 |
commit | cff6472442de2e65f95fa04893b12b1412118f60 (patch) | |
tree | e05400d2b498c04774b46739aabfd5a58faac56b /ssl/d1_both.c | |
parent | 0da0e18a60754e1d8cc520110f5a449ab01a47ef (diff) |
Mark some more globals as const.
Change-Id: Ie6f3a3713ce1482a787444678a65daa37bc0b273
Reviewed-on: https://boringssl-review.googlesource.com/1565
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'ssl/d1_both.c')
-rw-r--r-- | ssl/d1_both.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ssl/d1_both.c b/ssl/d1_both.c index 3478e2e4..bcfcc474 100644 --- a/ssl/d1_both.c +++ b/ssl/d1_both.c @@ -155,11 +155,11 @@ printf("\n"); } #endif -static unsigned char bitmask_start_values[] = {0xff, 0xfe, 0xfc, 0xf8, 0xf0, 0xe0, 0xc0, 0x80}; -static unsigned char bitmask_end_values[] = {0xff, 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f}; +static const uint8_t bitmask_start_values[] = {0xff, 0xfe, 0xfc, 0xf8, 0xf0, 0xe0, 0xc0, 0x80}; +static const uint8_t bitmask_end_values[] = {0xff, 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f}; /* XDTLS: figure out the right values */ -static unsigned int g_probable_mtu[] = {1500 - 28, 512 - 28, 256 - 28}; +static const unsigned int g_probable_mtu[] = {1500 - 28, 512 - 28, 256 - 28}; static unsigned int dtls1_guess_mtu(unsigned int curr_mtu); static void dtls1_fix_message_header(SSL *s, unsigned long frag_off, |