diff options
author | jsorg71 <jsorg71> | 2005-02-20 06:06:26 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2005-02-20 06:06:26 +0000 |
commit | 8defc32e27572d358de084c7a8de88fe248da84d (patch) | |
tree | 7ea29feafba79d32689f85e81691148925605e5a /common | |
parent | 2999a3c8313d3fcb64413d827c1380890533c451 (diff) | |
download | xrdp-proprietary-8defc32e27572d358de084c7a8de88fe248da84d.tar.gz xrdp-proprietary-8defc32e27572d358de084c7a8de88fe248da84d.zip |
readability and 64 bit changes
Diffstat (limited to 'common')
-rw-r--r-- | common/os_calls.c | 7 | ||||
-rw-r--r-- | common/parse.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/common/os_calls.c b/common/os_calls.c index 095ff4fd..d81b3cd4 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -948,13 +948,20 @@ void* g_get_proc_address(int lib, char* name) /*****************************************************************************/ int g_system(char* aexec) { +#ifdef _WIN32 + return 0; +#else return system(aexec); +#endif } /*****************************************************************************/ void g_signal(int sig_num, void (*func)(int)) { +#ifdef _WIN32 +#else signal(sig_num, func); +#endif } /*****************************************************************************/ diff --git a/common/parse.h b/common/parse.h index cbcbc37b..11fd92bc 100644 --- a/common/parse.h +++ b/common/parse.h @@ -76,7 +76,9 @@ struct stream #define free_stream(s) \ { \ if (s != 0) \ + { \ g_free(s->data); \ + } \ g_free(s); \ } \ |