diff options
author | Pavel Roskin <plroskin@gmail.com> | 2016-06-21 16:30:17 -0700 |
---|---|---|
committer | Pavel Roskin <plroskin@gmail.com> | 2016-07-08 04:29:43 +0000 |
commit | aaa89ad4e6b5484b246ec9ecb7d93248e1fa74cd (patch) | |
tree | 9078477de1ecc78a5f00b6a21b3642d71295e876 /sesman/chansrv/rail.c | |
parent | aeeb3d2c2e26677758a64db496c86020f99d2f1a (diff) | |
download | xrdp-proprietary-aaa89ad4e6b5484b246ec9ecb7d93248e1fa74cd.tar.gz xrdp-proprietary-aaa89ad4e6b5484b246ec9ecb7d93248e1fa74cd.zip |
Use const unsigned for hex arrays
Some constants are too big for the signed type.
Diffstat (limited to 'sesman/chansrv/rail.c')
-rw-r--r-- | sesman/chansrv/rail.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sesman/chansrv/rail.c b/sesman/chansrv/rail.c index cad16471..8a23973a 100644 --- a/sesman/chansrv/rail.c +++ b/sesman/chansrv/rail.c @@ -1148,8 +1148,8 @@ rail_data_in(struct stream *s, int chan_id, int chan_flags, int length, return 0; } -static int g_crc_seed = 0xffffffff; -static int g_crc_table[256] = +static const unsigned int g_crc_seed = 0xffffffff; +static const unsigned int g_crc_table[256] = { 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988, |