summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2012-06-11 20:10:56 -0700
committerJay Sorg <jay.sorg@gmail.com>2012-06-11 20:10:56 -0700
commitfcfd14fefdbfb523907b35b1b29f95ee5a4d9c75 (patch)
tree1e9619e969d450b8bba725b46311cc0b91dd7a1f
parent856783ba95e46561ee1776a22b03900e7f0e7286 (diff)
downloadxrdp-proprietary-fcfd14fefdbfb523907b35b1b29f95ee5a4d9c75.tar.gz
xrdp-proprietary-fcfd14fefdbfb523907b35b1b29f95ee5a4d9c75.zip
common: fix some warnings
-rw-r--r--common/list.c1
-rw-r--r--common/os_calls.c6
2 files changed, 5 insertions, 2 deletions
diff --git a/common/list.c b/common/list.c
index 9df7f6a1..f67a08ab 100644
--- a/common/list.c
+++ b/common/list.c
@@ -205,7 +205,6 @@ void APP_CC
list_dump_items(struct list* self)
{
int index;
- tbus item;
if (self->count == 0)
{
diff --git a/common/os_calls.c b/common/os_calls.c
index 29492293..4387f8f9 100644
--- a/common/os_calls.c
+++ b/common/os_calls.c
@@ -570,7 +570,11 @@ g_write_ip_address(int rcv_sck, char* ip_address, int bytes)
{
struct sockaddr_in s;
struct in_addr in;
+#if defined(_WIN32)
int len;
+#else
+ unsigned int len;
+#endif
int ip_port;
int ok;
@@ -1327,7 +1331,7 @@ g_mkdir(const char* dirname)
/*****************************************************************************/
/* gets the current working directory and puts up to maxlen chars in
- dirname
+ dirname
always returns 0 */
char* APP_CC
g_get_current_dir(char* dirname, int maxlen)