diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2014-08-06 13:21:01 -0700 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2014-08-06 13:21:01 -0700 |
commit | 8397055e8b412d58df84172fd6d883f7fe5b6906 (patch) | |
tree | 1f574323964fab8d3525cb0fb247c5496bbc23c5 /sesman/chansrv/chansrv.c | |
parent | e4d054654f30ad8be900e72e1f943f93baf1809c (diff) | |
download | xrdp-proprietary-8397055e8b412d58df84172fd6d883f7fe5b6906.tar.gz xrdp-proprietary-8397055e8b412d58df84172fd6d883f7fe5b6906.zip |
move some hard code paths to defines in header
Diffstat (limited to 'sesman/chansrv/chansrv.c')
-rw-r--r-- | sesman/chansrv/chansrv.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sesman/chansrv/chansrv.c b/sesman/chansrv/chansrv.c index 21fc6a6d..9dff1688 100644 --- a/sesman/chansrv/chansrv.c +++ b/sesman/chansrv/chansrv.c @@ -1013,8 +1013,7 @@ setup_listen(void) { g_lis_trans = trans_create(TRANS_MODE_UNIX, 8192, 8192); g_lis_trans->is_term = g_is_term; - g_snprintf(port, 255, "/tmp/.xrdp/xrdp_chansrv_socket_%d", - 7200 + g_display_num); + g_snprintf(port, 255, XRDP_CHANSRV_STR, g_display_num); } else { @@ -1045,7 +1044,7 @@ setup_api_listen(void) g_api_lis_trans = trans_create(TRANS_MODE_UNIX, 8192 * 4, 8192 * 4); g_api_lis_trans->is_term = g_is_term; - g_snprintf(port, 255, "/tmp/.xrdp/xrdpapi_%d", g_display_num); + g_snprintf(port, 255, CHANSRV_API_STR, g_display_num); g_api_lis_trans->trans_conn_in = my_api_trans_conn_in; error = trans_listen(g_api_lis_trans, port); |