summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_mm.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2012-06-11 20:55:39 -0700
committerJay Sorg <jay.sorg@gmail.com>2012-06-11 20:55:39 -0700
commita8bf71b567f2a5490082358c0668ac234b8f56ea (patch)
tree8cec04102763927ddc17ae77a68ee36c183315d9 /xrdp/xrdp_mm.c
parent2eb2f1d92df6586fb20e94677114f511c980c845 (diff)
downloadxrdp-proprietary-a8bf71b567f2a5490082358c0668ac234b8f56ea.tar.gz
xrdp-proprietary-a8bf71b567f2a5490082358c0668ac234b8f56ea.zip
xrdp: fix warnings
Diffstat (limited to 'xrdp/xrdp_mm.c')
-rw-r--r--xrdp/xrdp_mm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/xrdp/xrdp_mm.c b/xrdp/xrdp_mm.c
index a2edaa14..ec19e008 100644
--- a/xrdp/xrdp_mm.c
+++ b/xrdp/xrdp_mm.c
@@ -698,7 +698,7 @@ xrdp_mm_connect_chansrv(struct xrdp_mm* self, char* ip, char* port)
self->usechansrv = 1;
/* connect channel redir */
- if ((ip == 0) || (strcmp(ip, "127.0.0.1") == 0) || (ip[0] == 0))
+ if ((ip == 0) || (g_strcmp(ip, "127.0.0.1") == 0) || (ip[0] == 0))
{
/* unix socket */
self->chan_trans = trans_create(TRANS_MODE_UNIX, 8192, 8192);
@@ -750,8 +750,6 @@ xrdp_mm_process_login_response(struct xrdp_mm* self, struct stream* s)
int ok;
int display;
int rv;
- int uid;
- int gid;
char text[256];
char ip[256];
char port[256];
@@ -773,7 +771,7 @@ xrdp_mm_process_login_response(struct xrdp_mm* self, struct stream* s)
xrdp_wm_set_login_mode(self->wm, 10);
self->wm->dragging = 0;
/* connect channel redir */
- if ((ip == 0) || (strcmp(ip, "127.0.0.1") == 0) || (ip[0] == 0))
+ if ((ip == 0) || (g_strcmp(ip, "127.0.0.1") == 0) || (ip[0] == 0))
{
g_snprintf(port, 255, "/tmp/.xrdp/xrdp_chansrv_socket_%d", 7200 + display);
}