@@ -998,9 +998,9 @@ xrdp_mm_egfx_invalidate_wm_screen(struct xrdp_mm *self)
998998
999999/******************************************************************************/
10001000static int
1001- dynamic_monitor_open_response (intptr_t id , int chan_id , int creation_status )
1001+ dynamic_monitor_open_response (struct xrdp_process * id , int chan_id ,
1002+ int creation_status )
10021003{
1003- struct xrdp_process * pro ;
10041004 struct xrdp_wm * wm ;
10051005 struct stream * s ;
10061006 int bytes ;
@@ -1012,8 +1012,7 @@ dynamic_monitor_open_response(intptr_t id, int chan_id, int creation_status)
10121012 LOG (LOG_LEVEL_ERROR , "dynamic_monitor_open_response: error" );
10131013 return 1 ;
10141014 }
1015- pro = (struct xrdp_process * ) id ;
1016- wm = pro -> wm ;
1015+ wm = id -> wm ;
10171016 make_stream (s );
10181017 init_stream (s , 1024 );
10191018 out_uint32_le (s , 5 ); /* DISPLAYCONTROL_PDU_TYPE_CAPS */
@@ -1030,16 +1029,16 @@ dynamic_monitor_open_response(intptr_t id, int chan_id, int creation_status)
10301029
10311030/******************************************************************************/
10321031static int
1033- dynamic_monitor_close_response (intptr_t id , int chan_id )
1032+ dynamic_monitor_close_response (struct xrdp_process * id , int chan_id )
10341033{
10351034 LOG_DEVEL (LOG_LEVEL_TRACE , "dynamic_monitor_close_response:" );
10361035 return 0 ;
10371036}
10381037
10391038/******************************************************************************/
10401039static int
1041- dynamic_monitor_data_first (intptr_t id , int chan_id , char * data , int bytes ,
1042- int total_bytes )
1040+ dynamic_monitor_data_first (struct xrdp_process * id , int chan_id ,
1041+ char * data , int bytes , int total_bytes )
10431042{
10441043 LOG_DEVEL (LOG_LEVEL_TRACE , "dynamic_monitor_data_first:" );
10451044 return 0 ;
@@ -1438,21 +1437,20 @@ sync_dynamic_monitor_data(struct xrdp_wm *wm,
14381437
14391438/******************************************************************************/
14401439static int
1441- dynamic_monitor_data (intptr_t id , int chan_id , char * data , int bytes )
1440+ dynamic_monitor_data (struct xrdp_process * id , int chan_id ,
1441+ char * data , int bytes )
14421442{
14431443 int error = 0 ;
14441444 struct stream ls ;
14451445 struct stream * s ;
14461446 int msg_type ;
14471447 int msg_length ;
1448- struct xrdp_process * pro ;
14491448 struct xrdp_wm * wm ;
14501449 int monitor_layout_size ;
14511450 struct display_size_description * display_size_data ;
14521451
14531452 LOG_DEVEL (LOG_LEVEL_TRACE , "dynamic_monitor_data:" );
1454- pro = (struct xrdp_process * ) id ;
1455- wm = pro -> wm ;
1453+ wm = id -> wm ;
14561454
14571455 if (OUTPUT_SUPPRESSED_FOR_REASON (wm -> client_info ,
14581456 XSO_REASON_CLIENT_REQUEST ))
@@ -2029,19 +2027,18 @@ xrdp_mm_logwnd_fatal(struct xrdp_mm *self, int errinfo)
20292027/*****************************************************************************/
20302028/* open response from client going to channel server */
20312029static int
2032- xrdp_mm_drdynvc_open_response (intptr_t id , int chan_id , int creation_status )
2030+ xrdp_mm_drdynvc_open_response (struct xrdp_process * id , int chan_id ,
2031+ int creation_status )
20332032{
20342033 struct trans * trans ;
20352034 struct stream * s ;
20362035 struct xrdp_wm * wm ;
2037- struct xrdp_process * pro ;
20382036 int chansrv_chan_id ;
20392037
20402038 LOG_DEVEL (LOG_LEVEL_DEBUG , "xrdp_mm_drdynvc_open_response: "
20412039 " chan_id %d creation_status %d" ,
20422040 chan_id , creation_status );
2043- pro = (struct xrdp_process * ) id ;
2044- wm = pro -> wm ;
2041+ wm = id -> wm ;
20452042 trans = wm -> mm -> chan_trans ;
20462043 s = trans_get_out_s (trans , 8192 );
20472044 if (s == NULL )
@@ -2062,16 +2059,14 @@ xrdp_mm_drdynvc_open_response(intptr_t id, int chan_id, int creation_status)
20622059/*****************************************************************************/
20632060/* close response from client going to channel server */
20642061static int
2065- xrdp_mm_drdynvc_close_response (intptr_t id , int chan_id )
2062+ xrdp_mm_drdynvc_close_response (struct xrdp_process * id , int chan_id )
20662063{
20672064 struct trans * trans ;
20682065 struct stream * s ;
20692066 struct xrdp_wm * wm ;
2070- struct xrdp_process * pro ;
20712067 int chansrv_chan_id ;
20722068
2073- pro = (struct xrdp_process * ) id ;
2074- wm = pro -> wm ;
2069+ wm = id -> wm ;
20752070 trans = wm -> mm -> chan_trans ;
20762071 s = trans_get_out_s (trans , 8192 );
20772072 if (s == NULL )
@@ -2091,17 +2086,15 @@ xrdp_mm_drdynvc_close_response(intptr_t id, int chan_id)
20912086/*****************************************************************************/
20922087/* part data from client going to channel server */
20932088static int
2094- xrdp_mm_drdynvc_data_first (intptr_t id , int chan_id , char * data ,
2089+ xrdp_mm_drdynvc_data_first (struct xrdp_process * id , int chan_id , char * data ,
20952090 int bytes , int total_bytes )
20962091{
20972092 struct trans * trans ;
20982093 struct stream * s ;
20992094 struct xrdp_wm * wm ;
2100- struct xrdp_process * pro ;
21012095 int chansrv_chan_id ;
21022096
2103- pro = (struct xrdp_process * ) id ;
2104- wm = pro -> wm ;
2097+ wm = id -> wm ;
21052098 trans = wm -> mm -> chan_trans ;
21062099 s = trans_get_out_s (trans , 8192 );
21072100 if (s == NULL )
@@ -2124,16 +2117,15 @@ xrdp_mm_drdynvc_data_first(intptr_t id, int chan_id, char *data,
21242117/*****************************************************************************/
21252118/* data from client going to channel server */
21262119static int
2127- xrdp_mm_drdynvc_data (intptr_t id , int chan_id , char * data , int bytes )
2120+ xrdp_mm_drdynvc_data (struct xrdp_process * id , int chan_id ,
2121+ char * data , int bytes )
21282122{
21292123 struct trans * trans ;
21302124 struct stream * s ;
21312125 struct xrdp_wm * wm ;
2132- struct xrdp_process * pro ;
21332126 int chansrv_chan_id ;
21342127
2135- pro = (struct xrdp_process * ) id ;
2136- wm = pro -> wm ;
2128+ wm = id -> wm ;
21372129 trans = wm -> mm -> chan_trans ;
21382130 s = trans_get_out_s (trans , 8192 );
21392131 if (s == NULL )
0 commit comments