summaryrefslogtreecommitdiffstats
path: root/sesman/libscp_v1s.c
diff options
context:
space:
mode:
authorilsimo <ilsimo>2007-04-13 12:00:19 +0000
committerilsimo <ilsimo>2007-04-13 12:00:19 +0000
commit3320fe907fb745d361d2f581e13f5cda8b203077 (patch)
treec5407c05b4ee4e2430d8b090646c16acc3d7aaff /sesman/libscp_v1s.c
parent888643e3c063ed04a2298a17e3732bf193ccf09f (diff)
downloadxrdp-proprietary-3320fe907fb745d361d2f581e13f5cda8b203077.tar.gz
xrdp-proprietary-3320fe907fb745d361d2f581e13f5cda8b203077.zip
portability fix: changed uintXX_t in xrdp defined datatypes
Diffstat (limited to 'sesman/libscp_v1s.c')
-rw-r--r--sesman/libscp_v1s.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/sesman/libscp_v1s.c b/sesman/libscp_v1s.c
index 9a3e2df6..0de0dc5a 100644
--- a/sesman/libscp_v1s.c
+++ b/sesman/libscp_v1s.c
@@ -34,11 +34,11 @@
enum SCP_SERVER_STATES_E scp_v1s_accept(struct SCP_CONNECTION* c, struct SCP_SESSION** s, int skipVchk)
{
struct SCP_SESSION* session;
- uint32_t version;
- uint32_t size;
- uint16_t cmdset;
- uint16_t cmd;
- unsigned char sz;
+ tui32 version;
+ tui32 size;
+ tui16 cmdset;
+ tui16 cmd;
+ tui8 sz;
if (!skipVchk)
{
@@ -202,13 +202,13 @@ scp_v1s_deny_connection(struct SCP_CONNECTION* c, char* reason)
enum SCP_SERVER_STATES_E
scp_v1s_request_password(struct SCP_CONNECTION* c, struct SCP_SESSION* s, char* reason)
{
- unsigned char sz;
+ tui8 sz;
char *ubuf;
char *pbuf;
- uint32_t version;
- uint32_t size;
- uint16_t cmdset;
- uint16_t cmd;
+ tui32 version;
+ tui32 size;
+ tui16 cmdset;
+ tui16 cmd;
int rlen;
init_stream(c->in_s, c->in_s->size);
@@ -325,9 +325,9 @@ enum SCP_SERVER_STATES_E
scp_v1s_connect_new_session(struct SCP_CONNECTION* c, SCP_DISPLAY d)
{
/* send password request */
- uint32_t version=1;
- uint32_t size=14;
- uint16_t cmd=30;
+ tui32 version=1;
+ tui32 size=14;
+ tui16 cmd=30;
init_stream(c->out_s, c->out_s->size);
@@ -358,9 +358,9 @@ scp_v1s_connection_error(struct SCP_CONNECTION* c, char* error)
enum SCP_SERVER_STATES_E
scp_v1s_list_sessions(struct SCP_CONNECTION* c, int sescnt, struct SCP_DISCONNECTED_SESSION* ds, SCP_SID* sid)
{
- uint32_t version=1;
- uint32_t size=12;
- uint16_t cmd=40;
+ tui32 version=1;
+ tui32 size=12;
+ tui16 cmd=40;
int pktcnt;
int idx;
int sidx;
@@ -564,9 +564,9 @@ scp_v1s_list_sessions(struct SCP_CONNECTION* c, int sescnt, struct SCP_DISCONNEC
enum SCP_SERVER_STATES_E
scp_v1s_reconnect_session(struct SCP_CONNECTION* c, SCP_DISPLAY d)
{
- uint32_t version = 1;
- uint32_t size = 14;
- uint16_t cmd = 46;
+ tui32 version = 1;
+ tui32 size = 14;
+ tui16 cmd = 46;
/* ok, we send session data and display */
init_stream(c->out_s, c->out_s->size);