summaryrefslogtreecommitdiffstats
path: root/common/os_calls.c
diff options
context:
space:
mode:
authornorrarvid <norrarvid@gmail.com>2012-06-18 08:11:26 +0200
committernorrarvid <norrarvid@gmail.com>2012-06-18 08:11:26 +0200
commit31a5dd33ddfa86e195469dff776e7ca1cf4d7b06 (patch)
treef7c6b72ac5984f096d47c3cb2e3ab5a102f0e36a /common/os_calls.c
parent048154ccefa549e94292473b4b7e8ea0a29fcefa (diff)
downloadxrdp-proprietary-31a5dd33ddfa86e195469dff776e7ca1cf4d7b06.tar.gz
xrdp-proprietary-31a5dd33ddfa86e195469dff776e7ca1cf4d7b06.zip
minor layout fixes
Diffstat (limited to 'common/os_calls.c')
-rw-r--r--common/os_calls.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/common/os_calls.c b/common/os_calls.c
index ae48fc94..2a97fc69 100644
--- a/common/os_calls.c
+++ b/common/os_calls.c
@@ -1079,13 +1079,15 @@ g_obj_wait(tbus* read_objs, int rcount, tbus* write_objs, int wcount,
FD_SET(sck, &rfds);
if (sck > max)
{
- max = sck; /*max holds the highest socket/descriptor number */
+ max = sck; /*max holds the highest socket/descriptor number */
}
}
}
- }else if(rcount>0){
- g_writeln("Programming error read_objs is null");
- return 1; /*error*/
+ }
+ else if(rcount>0)
+ {
+ g_writeln("Programming error read_objs is null");
+ return 1; /*error*/
}
if(write_objs!=NULL){
for (i = 0; i < wcount; i++)
@@ -1099,9 +1101,11 @@ g_obj_wait(tbus* read_objs, int rcount, tbus* write_objs, int wcount,
}
}
}
- }else if(wcount>0){
- g_writeln("Programming error write_objs is null");
- return 1; /*error*/
+ }
+ else if(wcount>0)
+ {
+ g_writeln("Programming error write_objs is null");
+ return 1; /*error*/
}
res = select(max + 1, &rfds, &wfds, 0, ptime);
if (res < 0)