Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/neutrinolabs/NeutrinoRDP.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2013-06-27 10:20:51 +0400
committerJay Sorg <jay.sorg@gmail.com>2013-06-27 10:20:51 +0400
commita596236a6b0f87d51a9e6c97898fe2956a3b6909 (patch)
tree55e8f1e3b47bd48954bcde2ac45e1e43cc5e4717 /server
parent78356209a18ad9defb93357f043d9e09030c9467 (diff)
do not use true for == or !=
Diffstat (limited to 'server')
-rw-r--r--server/X11/xf_peer.c10
-rw-r--r--server/X11/xfreerdp.c5
2 files changed, 7 insertions, 8 deletions
diff --git a/server/X11/xf_peer.c b/server/X11/xf_peer.c
index d2b56c9..dad3285 100644
--- a/server/X11/xf_peer.c
+++ b/server/X11/xf_peer.c
@@ -57,7 +57,7 @@ void xf_xdamage_init(xfInfo* xfi)
{
XShmQueryVersion(xfi->display, &major, &minor, &pixmaps);
- if (pixmaps != True)
+ if (pixmaps == False)
{
printf("XShmQueryVersion failed\n");
return;
@@ -640,12 +640,12 @@ void* xf_peer_main_loop(void* arg)
{
rcount = 0;
- if (client->GetFileDescriptor(client, rfds, &rcount) != true)
+ if (client->GetFileDescriptor(client, rfds, &rcount) == false)
{
printf("Failed to get FreeRDP file descriptor\n");
break;
}
- if (xf_peer_get_fds(client, rfds, &rcount) != true)
+ if (xf_peer_get_fds(client, rfds, &rcount) == false)
{
printf("Failed to get xfreerdp file descriptor\n");
break;
@@ -680,12 +680,12 @@ void* xf_peer_main_loop(void* arg)
}
}
- if (client->CheckFileDescriptor(client) != true)
+ if (client->CheckFileDescriptor(client) == false)
{
printf("Failed to check freerdp file descriptor\n");
break;
}
- if ((xf_peer_check_fds(client)) != true)
+ if ((xf_peer_check_fds(client)) == false)
{
printf("Failed to check xfreerdp file descriptor\n");
break;
diff --git a/server/X11/xfreerdp.c b/server/X11/xfreerdp.c
index bd0e653..614b7ff 100644
--- a/server/X11/xfreerdp.c
+++ b/server/X11/xfreerdp.c
@@ -49,7 +49,7 @@ void xf_server_main_loop(freerdp_listener* instance)
{
rcount = 0;
- if (instance->GetFileDescriptor(instance, rfds, &rcount) != true)
+ if (instance->GetFileDescriptor(instance, rfds, &rcount) == false)
{
printf("Failed to get FreeRDP file descriptor\n");
break;
@@ -84,7 +84,7 @@ void xf_server_main_loop(freerdp_listener* instance)
}
}
- if (instance->CheckFileDescriptor(instance) != true)
+ if (instance->CheckFileDescriptor(instance) == false)
{
printf("Failed to check FreeRDP file descriptor\n");
break;
@@ -121,4 +121,3 @@ int main(int argc, char* argv[])
return 0;
}
-