summaryrefslogtreecommitdiffstats
path: root/sesman/libscp
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2010-08-09 23:02:06 +0000
committerjsorg71 <jsorg71>2010-08-09 23:02:06 +0000
commitd83ebaa97af49224f680e7a793ae53777ec20f92 (patch)
tree49feaf19a885026cb0c8c562f493a2cce7c74c85 /sesman/libscp
parent0156c1448df053d4bd144f19aba4353ddebe1978 (diff)
downloadxrdp-proprietary-d83ebaa97af49224f680e7a793ae53777ec20f92.tar.gz
xrdp-proprietary-d83ebaa97af49224f680e7a793ae53777ec20f92.zip
use do ... while (0) style for parse.h
Diffstat (limited to 'sesman/libscp')
-rw-r--r--sesman/libscp/libscp_v1c.c2
-rw-r--r--sesman/libscp/libscp_v1c_mng.c2
-rw-r--r--sesman/libscp/libscp_v1s.c2
-rw-r--r--sesman/libscp/libscp_v1s_mng.c4
4 files changed, 5 insertions, 5 deletions
diff --git a/sesman/libscp/libscp_v1c.c b/sesman/libscp/libscp_v1c.c
index 37f66ab8..6e1c3b8a 100644
--- a/sesman/libscp/libscp_v1c.c
+++ b/sesman/libscp/libscp_v1c.c
@@ -398,7 +398,7 @@ _scp_v1c_check_response(struct SCP_CONNECTION* c, struct SCP_SESSION* s)
return SCP_CLIENT_STATE_SEQUENCE_ERR;
}
- in_uint16_be(c->in_s, cmd)
+ in_uint16_be(c->in_s, cmd);
if (cmd == 2) /* connection denied */
{
in_uint16_be(c->in_s, dim);
diff --git a/sesman/libscp/libscp_v1c_mng.c b/sesman/libscp/libscp_v1c_mng.c
index e8104021..bb54bc79 100644
--- a/sesman/libscp/libscp_v1c_mng.c
+++ b/sesman/libscp/libscp_v1c_mng.c
@@ -378,7 +378,7 @@ _scp_v1c_mng_check_response(struct SCP_CONNECTION* c, struct SCP_SESSION* s)
return SCP_CLIENT_STATE_SEQUENCE_ERR;
}
- in_uint16_be(c->in_s, cmd)
+ in_uint16_be(c->in_s, cmd);
if (cmd == SCP_CMD_MNG_LOGIN_ALLOW) /* connection ok */
{
log_message(s_log, LOG_LEVEL_INFO, "[v1c_mng:%d] connection ok", __LINE__);
diff --git a/sesman/libscp/libscp_v1s.c b/sesman/libscp/libscp_v1s.c
index d43dde86..e57a907e 100644
--- a/sesman/libscp/libscp_v1s.c
+++ b/sesman/libscp/libscp_v1s.c
@@ -203,7 +203,7 @@ scp_v1s_deny_connection(struct SCP_CONNECTION* c, char* reason)
out_uint32_be(c->out_s, rlen+14);
out_uint16_be(c->out_s, SCP_COMMAND_SET_DEFAULT);
out_uint16_be(c->out_s, 2);
- out_uint16_be(c->out_s, rlen)
+ out_uint16_be(c->out_s, rlen);
out_uint8p(c->out_s, reason, rlen);
if (0!=scp_tcp_force_send(c->in_sck, c->out_s->data, rlen+14))
diff --git a/sesman/libscp/libscp_v1s_mng.c b/sesman/libscp/libscp_v1s_mng.c
index 75b62aba..266c9962 100644
--- a/sesman/libscp/libscp_v1s_mng.c
+++ b/sesman/libscp/libscp_v1s_mng.c
@@ -152,7 +152,7 @@ scp_v1s_mng_deny_connection(struct SCP_CONNECTION* c, char* reason)
out_uint32_be(c->out_s, rlen+14);
out_uint16_be(c->out_s, SCP_COMMAND_SET_MANAGE);
out_uint16_be(c->out_s, SCP_CMD_MNG_LOGIN_DENY);
- out_uint16_be(c->out_s, rlen)
+ out_uint16_be(c->out_s, rlen);
out_uint8p(c->out_s, reason, rlen);
if (0!=scp_tcp_force_send(c->in_sck, c->out_s->data, rlen+14))
@@ -307,7 +307,7 @@ _scp_v1s_mng_check_response(struct SCP_CONNECTION* c, struct SCP_SESSION* s)
return SCP_SERVER_STATE_SEQUENCE_ERR;
}
- in_uint16_be(c->in_s, cmd)
+ in_uint16_be(c->in_s, cmd);
if (cmd == SCP_CMD_MNG_LIST_REQ) /* request session list */
{
log_message(s_log, LOG_LEVEL_INFO, "[v1s_mng:%d] request session list", __LINE__);