summaryrefslogtreecommitdiffstats
path: root/xrdpapi
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 /xrdpapi
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 'xrdpapi')
-rw-r--r--xrdpapi/xrdpapi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xrdpapi/xrdpapi.c b/xrdpapi/xrdpapi.c
index baa1187a..ac303534 100644
--- a/xrdpapi/xrdpapi.c
+++ b/xrdpapi/xrdpapi.c
@@ -53,8 +53,10 @@ static int send_init(struct wts_obj *wts);
static int can_send(int sck, int millis);
static int can_recv(int sck, int millis);
-static char g_xrdpapi_magic[12] =
-{ 0x78, 0x32, 0x10, 0x67, 0x00, 0x92, 0x30, 0x56, 0xff, 0xd8, 0xa9, 0x1f };
+static const unsigned char g_xrdpapi_magic[12] =
+{
+ 0x78, 0x32, 0x10, 0x67, 0x00, 0x92, 0x30, 0x56, 0xff, 0xd8, 0xa9, 0x1f
+};
/*
* Opens a handle to the server end of a specified virtual channel - this