Use const unsigned for hex arrays

Some constants are too big for the signed type.
This commit is contained in:
Pavel Roskin
2016-06-21 16:30:17 -07:00
parent aeeb3d2c2e
commit aaa89ad4e6
5 changed files with 13 additions and 11 deletions
+4 -2
View File
@@ -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