summaryrefslogtreecommitdiffstats
path: root/rdp/rdp_rdp.c
diff options
context:
space:
mode:
authorPavel Roskin <plroskin@gmail.com>2016-06-21 16:30:17 -0700
committerPavel Roskin <plroskin@gmail.com>2016-07-08 04:29:43 +0000
commitaaa89ad4e6b5484b246ec9ecb7d93248e1fa74cd (patch)
tree9078477de1ecc78a5f00b6a21b3642d71295e876 /rdp/rdp_rdp.c
parentaeeb3d2c2e26677758a64db496c86020f99d2f1a (diff)
downloadxrdp-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 'rdp/rdp_rdp.c')
-rw-r--r--rdp/rdp_rdp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/rdp/rdp_rdp.c b/rdp/rdp_rdp.c
index d5c8e27f..cede7b02 100644
--- a/rdp/rdp_rdp.c
+++ b/rdp/rdp_rdp.c
@@ -312,7 +312,7 @@ rdp_rdp_out_colcache_caps(struct rdp_rdp *self, struct stream *s)
return 0;
}
-static char caps_0x0d[] =
+static const unsigned char caps_0x0d[] =
{
0x01, 0x00, 0x00, 0x00, 0x09, 0x04, 0x00, 0x00,
0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -327,11 +327,11 @@ static char caps_0x0d[] =
0x00, 0x00, 0x00, 0x00
};
-static char caps_0x0c[] = { 0x01, 0x00, 0x00, 0x00 };
+static const unsigned char caps_0x0c[] = { 0x01, 0x00, 0x00, 0x00 };
-static char caps_0x0e[] = { 0x01, 0x00, 0x00, 0x00 };
+static const unsigned char caps_0x0e[] = { 0x01, 0x00, 0x00, 0x00 };
-static char caps_0x10[] =
+static const unsigned char caps_0x10[] =
{
0xFE, 0x00, 0x04, 0x00, 0xFE, 0x00, 0x04, 0x00,
0xFE, 0x00, 0x08, 0x00, 0xFE, 0x00, 0x08, 0x00,
@@ -345,7 +345,7 @@ static char caps_0x10[] =
/* Output unknown capability sets */
static int APP_CC
rdp_rdp_out_unknown_caps(struct rdp_rdp *self, struct stream *s, int id,
- int length, char *caps)
+ int length, const unsigned char *caps)
{
out_uint16_le(s, id);
out_uint16_le(s, length);