From 8defc32e27572d358de084c7a8de88fe248da84d Mon Sep 17 00:00:00 2001 From: jsorg71 Date: Sun, 20 Feb 2005 06:06:26 +0000 Subject: readability and 64 bit changes --- common/os_calls.c | 7 +++++++ common/parse.h | 2 ++ 2 files changed, 9 insertions(+) (limited to 'common') 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); \ } \ -- cgit v1.2.1