Minor const and comment fixes

This commit is contained in:
matt335672 2021-04-19 16:32:04 +01:00
parent a10de5c5aa
commit c9afd804a4
3 changed files with 6 additions and 5 deletions

View File

@ -814,7 +814,7 @@ trans_connect(struct trans *self, const char *server, const char *port,
* @return 0 on success, 1 on failure
*/
int
trans_listen_address(struct trans *self, char *port, const char *address)
trans_listen_address(struct trans *self, const char *port, const char *address)
{
if (self->sck != 0)
{
@ -929,7 +929,7 @@ trans_listen_address(struct trans *self, char *port, const char *address)
/*****************************************************************************/
int
trans_listen(struct trans *self, char *port)
trans_listen(struct trans *self, const char *port)
{
return trans_listen_address(self, port, "0.0.0.0");
}

View File

@ -148,9 +148,9 @@ int
trans_connect(struct trans *self, const char *server, const char *port,
int timeout);
int
trans_listen_address(struct trans *self, char *port, const char *address);
trans_listen_address(struct trans *self, const char *port, const char *address);
int
trans_listen(struct trans *self, char *port);
trans_listen(struct trans *self, const char *port);
struct stream *
trans_get_in_s(struct trans *self);
struct stream *

View File

@ -143,7 +143,8 @@ env_set_user(const char *username, char **passwd_file, int display,
g_sprintf(text, ":%d.0", display);
g_setenv("DISPLAY", text, 1);
g_setenv("XRDP_SESSION", "1", 1);
/* XRDP_SOCKET_PATH should be set even here, chansrv uses this */
/* XRDP_SOCKET_PATH should be set even here. It's used by
* xorgxrdp and the pulseaudio plugin */
g_setenv("XRDP_SOCKET_PATH", XRDP_SOCKET_PATH, 1);
/* pulse sink socket */
g_snprintf(text, sizeof(text) - 1, CHANSRV_PORT_OUT_BASE_STR, display);