summaryrefslogtreecommitdiffstats
path: root/xrdpapi
diff options
context:
space:
mode:
authorjsorg71 <jay.sorg@gmail.com>2016-05-11 20:15:29 -0700
committerjsorg71 <jay.sorg@gmail.com>2016-05-11 20:15:29 -0700
commitf31b5a178b769661c7e5a7169a6aa07a29c7b8e4 (patch)
treea942381dffb3c3a30b3402ee2409cb1c64c9a157 /xrdpapi
parent0a6a55b5472fff76a09d3b2435ec0d09329a93d7 (diff)
parent9057ad0bba9163c1a54d0f1ef339bf335f6baaf1 (diff)
downloadxrdp-proprietary-f31b5a178b769661c7e5a7169a6aa07a29c7b8e4.tar.gz
xrdp-proprietary-f31b5a178b769661c7e5a7169a6aa07a29c7b8e4.zip
Merge pull request #372 from proski/gcc5-warnings
Fix warnings reported by gcc 5.3.0 on Mac OS
Diffstat (limited to 'xrdpapi')
-rw-r--r--xrdpapi/xrdpapi.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/xrdpapi/xrdpapi.c b/xrdpapi/xrdpapi.c
index 7d5c65f0..baa1187a 100644
--- a/xrdpapi/xrdpapi.c
+++ b/xrdpapi/xrdpapi.c
@@ -480,17 +480,11 @@ get_display_num_from_display(char *display_text)
{
int index;
int mode;
- int host_index;
int disp_index;
- int scre_index;
- char host[256];
char disp[256];
- char scre[256];
index = 0;
- host_index = 0;
disp_index = 0;
- scre_index = 0;
mode = 0;
while (display_text[index] != 0)
@@ -503,27 +497,15 @@ get_display_num_from_display(char *display_text)
{
mode = 2;
}
- else if (mode == 0)
- {
- host[host_index] = display_text[index];
- host_index++;
- }
else if (mode == 1)
{
disp[disp_index] = display_text[index];
disp_index++;
}
- else if (mode == 2)
- {
- scre[scre_index] = display_text[index];
- scre_index++;
- }
index++;
}
- host[host_index] = 0;
disp[disp_index] = 0;
- scre[scre_index] = 0;
return atoi(disp);
}